I have created an automation which can used to navigate to a particular website, go through the site and grab the search results. This automation is working fine but sometime it does not execute and give an error called "Error Executing link in Automation". Here I attached a screenshot of that error. This is not happened always. What will be the reason for this? Is this happening because of missed step in creating automation or matching rules?
This means that at the time you are trying to call PerformClick on "link1", it is not matched. Either your match rules are incorrect at the time or you are not waiting for the control to be created (although there is an impilcit WaitForCreate of 30000 ms before that exception would get thrown). You'll need to examine the logs to determine why that control did not match. Potetially it is because of soemthing specific to that account (i.e. you are matching the link based on it containing "open" and this is a "closed" account or something similar).
That is very likely the cause. You will need to determine what is different about the new link after 25 minutes. Perhaps all you need to do is call Rematch(), but I would simply perform that operation (waiting the 25 minutes) in Studio during interrogation to see what is happening.
Interrogation is done after 25 minutes and the same match rules are available for the objects. I called Rematch(), but for the 1st time it's worked fine then again it's not worked at the second attempt. Most of the time, automation is working for the entire day but in the next day it doesn't work.