Hi,
I need to build RPA process which tries to download data from a webpage. That webpage sometimes takes a long time load data. Therefore, I am planning to use Retry scope and Try Catch activities together for this process.
The idea is that
- First, robot will search data from the webpage for a specific date inside the retry scope.
- Because that webpage sometimes takes long time to load data, it can cause time out exception.
- Whenever there is an exception, retry scope will retry the process. I will set max number of retry to be 3.
- The process still throw an exception even after 3 retries, I will use try catch activities to catch the exception and report the user. In this case, should I use rethrow the exception inside the catch or use throw the exception inside the catch?
What is the correct way of using retry and try catch activities together for this application?
Thanks.