Google Chrome Hangs/Freezes + After few 100 records

I have about 5000 records that a bot needs to process.

I have a bot that navigates to a web application and downloads a report. It works fine for about 300 records in a loop.

After that chrome just freezes and hangs. I have to manually stop the bot and close chrome and restart the process.

I am using kill process and added delays but that doesn’t seem to help with the issue.

Did any one face this and how to fix it.

Hi @Sairam_RPA

This Steps might help you to solve your Issue,

  • Ensure that you’re properly closing browser tabs and other resources (like file handles) after each iteration.
  • Instead of processing all 5000 records in a single loop, consider breaking them into smaller chunks and processing them in parallel using the ‘Parallel For Each’ activity. This can help distribute the resource load and reduce the likelihood of Chrome freezing.
  • Adjust page load timeouts and retry mechanisms in your automation to handle situations where the web application might be slow or unresponsive.
  • Use the ‘Retry Scope’ activity in UiPath to handle intermittent issues.

Hey @Sairam_RPA

Try this

Well I am running the 25 records on chrome browser and 25 records on edge browser and switching browsers as the process goes on.

I still see the task bar and the system hangs after sometime. Not sure how to handle this.

@Sairam_RPA

So you are running a bot in loop and downloding report for each item in the loop

Cheers

Yes. That is correct

After this change bot processed about 2500 files without any issues. I saw an error after that one of the selector failed.

If I am working in a loop how should the bot retry the same record for 3 times and then continue on with the process.

( To be clear I have retries for all selectors). I am asking about the failed record from start to end.

Any inputs on this.

Thankyou.

@Sairam_RPA

You can try enclosing whole of it in try catch inside the loop and enclose that in retry scope…and then in catch perform the relogin steps and then the loop would be retried

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.