I have a process whereby I extract a list of 1500+ records from Excel into a datatable, where a for each row in data table utilises find element to detect if a particular UI element exists.
If it exists, it creates a folder in my local drive, and moves on to the next data table.
If it does not exist, it ends for the particular row in the data table, and moves on to the next data table.
Following which, there will be a second set of flows that will be run on records with folders created.
When the flow was tested on a list of 10 records, the first set of flows ran flawlessly. The same applies when tested on 100 records.
However, when tested in batches of 500/1000/1500 records, the flow fails close to the 2 hour mark (sometimes failing close to 200 record mark).
The reason for failure is that the flow suddenly cannot detect the UI element.
I have inserted delays too, but it did not help
Has anyone encountered such issues before?
p.s. am pretty new to this hence I apologise if I take longer to understand.
Here are a few suggestions you could try to address the issue:
Increase the timeout period: You could try increasing the timeout period in your UiPath project settings. This could help ensure that the UI element is detected even if it takes longer to appear.
Use parallel processing: If you are processing a large number of records, you could try using parallel processing to speed up the process. This involves splitting the data into smaller batches and running them in parallel, which could reduce the overall processing time.
Optimize the UI automation process: Review your process and see if there are any unnecessary steps or delays that could be removed to improve efficiency. Additionally, you could try using different selectors or methods to detect the UI element, such as using “Wait for Element to Appear” activity instead of “Find Element”.
Optimize system resources: Ensure that your system has enough resources to run the automation process. This includes checking CPU and memory usage during the process and ensuring that your system is not running any other resource-intensive tasks.
I’m afraid you don’t need the click, find element exist or element exist activities. Just use the Folder Exists Activities - Folder Exists activity.
Also, I tend to believe that you should use the modern activities within your process
The click activity is used to navigate to a page where a particular UI element is to be detected.
If detected, a folder is then created (folder does not exist before the detection).
I see, will investigate into the modern activities too!
Played with a couple of changes and it seems like changing my network, along with cache size works. I am able to run the flow longer, and it only stops upon encountering valid errors.