Skip to main content

Hi everyone,

I've developed a bot for downloading reports from a portal. Occasionally, the bot gets stuck on some line items, though this doesn’t happen every time.

I've updated all the packages used in the bot to the latest versions and set a 1-second wait period for specific actions. However, the bot sometimes remains stuck on the same line item for more than 10 hours and i manually stopped the bot 

 

This issue occurs 3 to 4 times within a 10-day period, causing subsequent tasks to queue up. I’ve tried to diagnose the problem but haven’t been able to pinpoint the cause.

The bot runs on an RDP instance at 12:00 AM IST, making it difficult to monitor in real-time as the issue is unpredictable.

Could anyone help me resolve this issue? I can provide a screenshot showing the latest issue faced by the bot at lines 68 or 69.

Note : previous time i was getting issue on wait for condition , but i was mentioned the time limit for the wait condition,

 

 

Hello, 

 

Try adding retry mechanism in your script, this should work for 3-4 times not beyind that and also make use use of try catch and finally block so that your are notified about that. 

Make use of object properties which are static in nature ex: DOMX paths etc, instead of path… 


@Sohyl, it seems like you need to adjust your HTML properties. Also, try removing the path from the HTML properties.

I recommend observing the loading time of the object carefully. Add a sufficient delay to ensure the object has fully loaded before interacting with it. You can track the time it takes for the object to appear and adjust the wait condition accordingly, ensuring that the script doesn't proceed until the object is ready. This will help prevent errors due to attempting actions on an object that isn’t fully loaded.

Please let me know if you're still facing the issue, and we can connect to resolve it.


Reply