I try to Catch the exception when Uipath fail to click a button on a website.
I’m only looking for the exception name to use in Try Catch not a solution to fix this miss click.
I already tried with “System.SystemException” but nothing is catch.
I would suggest you to run the steps in debug mode and add a break point and then from the local panel you can open the exception details and find the exception that and the type of exception
you need to right click on activity and select add breakpoint and once bot reaches there it will pause you can do step into and after failure go to local tab on left
Is the bot failing there or its moving smoothly. Inside catch you have to do some activity to check if catch is working or not. You can add a log message as well to check if its working
my “try” only contain a click activity targetting a real button hide behind a Popup on a website.
I set two catch :
System.Exception
NodeNotFoundException
both contains a differents log message.
the bot take a break on the click activity, show a red exception (UI not found) and show a button “Continue” if I continue the exception is catch and the message is shown and the bot stop
Then it is working right. if the right log message is coming up. You have to add NodeNotFunctionException on top and then the system.Exception. Sequence matters