I want my robot to start from the beginning (open the browser, type username, and password, click certain things, type, select and submit stuff like these) in a case of system error in UiPath. How can I make sure my workflow works like that? I used try-catch and inside catch I have tried to attach the browser and then close the window but it doesn’t catch error. The problem is there can be various errors and it’s not possible to use many try-catch. So, in a case of those error I want my browser to get closed and the workflow starts from the beginning
for those cases we can use state machines or reframework template,
Main.xaml (13.1 KB)
Here is a template how to use that
Regards
Thank you for your reply. However, I didn’t understand these terms (exit, transition, exception occupation, destination). Is this inbuilt activity? If so then I couldn’t find it inside the activity panel.
@Samraat_Maharjan
As we all know, we can use next Try-Catch but as you mentioned you don’t use one by one.
I have a suggestion for it.
- please whole code in Try Block.
- In Catch block select system exception and throw an error.
- enclose these all things with Retry scope
Step1: Try Catch Part:
Retry Scope Part:
Entry part is to have the activities or workflow you can have in side try catch and if there is any exception then it will go to catch part and in catch part you can decide on transitions like if there is a exception then which workflow the bot need to execute.
After successful execution of Entry part bot comes to Exit part
thank you
I would highly recommend using the Robotic Enterprise Framework.
You can throw a System Exception and the framework will handle the rest.
Cheers
Steve
Hi @Steven_McKeering thanks for sharing.
Tips to fix-
Switch to Windows Default Theme.
Reset Windows Store Cache.
Use Check Disk Utility Tool.
Repair System Files Using DISM.
Run Virus or Malware Scan.
Regards,
Rachel Gomez