Skip to main content

I am using Automation Anywhere onprem Enterprise version while using recorder i have to loop through it sometime after 20-25 time it fails to capture what can be the solution as it’s production issue I am facing.

 

Let me tag a couple of people who may be able to support you here:
@Shreya.Kumar 

@Matt.Stewart 

@Vatsy 

@ChanduMohammad_S 


Hi ​@huzaifa.salahuddin 

This might be related to a latency issue. To address it, you can include a wait condition to ensure the object exists before proceeding:

  1. Wait Condition – Use an explicit wait to allow the object to appear within a specified time.
  2. If Condition – Check if the object exists before interacting with it.

Additionally, I recommend taking a screenshot when the error occurs. This can help you identify the root cause more efficiently during troubleshooting.


I am using Automation Anywhere onprem Enterprise version while using recorder i have to loop through it sometime after 20-25 time it fails to capture what can be the solution as it’s production issue I am facing.

 

Please try below some points:

1.Enable Native Fallback ( Recorder package version 3.2.1-20240606-105427 and Bot Agent version 22.60.23 or later)

  • Go to Bot Editor > Advanced Settings > Package Settings > Recorder

  • Enable “Use native fallback” to allow alternate object paths if the primary one fails

2.Insert a short Delay (1–2 seconds) after each Recorder action

3.Use Recorder actions inside an If Object Exists condition

4.Focus on stable attributes like innertext, id and class

5.Put Recorder actions in a Try-Catch block and keeps logs in catch block


Hi ​@huzaifa.salahuddin ,

 

I would recommend using the Loop → While with Object doesn't exist action and pass the object details that your Bot is keep failing to capture during the iteration. By doing this, your bot will keep on checking for this object within the webpage and on positive note, you don't have to use any additional delays.


@huzaifa.salahuddin some great solutions by the community! Have you been able to try these suggestions?