I’m building an automation to capture leave balances from the company website and input into Excel. The capturing process is fully and works perfectly, but every now and then the website throws an inactive error that signs you out even if the bot is busy. It is random. Is there something I can do to catch this exception, click stay logged on and continue where the bot left off before the error.
Is this issue happening on some particular page? Or is it random?
Any way you can put the workflow inside a try-catch block and if the exception happens can redirect the flow to initialization. Better to use Re-framework.
So first a Message Box telling you that it will log you out in 120 sec, it gives you 2 options. You need to click stay logged on so that it does not log you out of the session.
You see I thought about that, but will the robot be able to continue where it the error stopped, as the process runs in a for each loop. I am not sure how to use ReFramework yet, but will attempt to use it.
Yes you have to use a hardware input or try using move hover if there are any pop ups that come up even that will have the session active. But yes hardware clicks are best you can choose a text field or a static field and keep clicking on it whenever needed
Global handler on the other hand will handle and start the process from where it failed in your process block
The hardware inputs, didn’t not work, the Global exception handler did, but I need to retry the previous activity before the exception and not the activity that threw the exception otherwise the automation stops everytime
Thats typical… so let me give you another way which fits this…
Use a parallel activity with one side being a while loop on the do not signout button…and on other side give all other steps in sequence…
Then ideally whenever you see a pop…you can click because your parallel activity will be always looking for the window…make sure to check continue on error in your click activity because it has a timeout so in loop it should not fail