I’m following Level 1 and in lesson 12 working with Try_catch activity I found that cast to integer into try throw an error with triggering catch.
Even the solution attached make same error. Why try catch doen’t launch catch instance when error occurs? I tried with several types of exception in order to fix the error but doen’t work.
In this case the exercise is trying to cast Excel cell values where some are numbers forms an other contain letters expecting to launch exception and execute activities placed in “catch”. When a cell value contain a letter, so interger cast can’t be done, exception is no treated into catch and stopping sequence.
This is a practice in Lesson 13 from Level 1 training. Even answer provided doesn’t work for me. I tried to use the most general exception handling to avoid problems.
I don’t know why exception is not treated
There’s a default setting in the newest version of UiPath which interferes with Lesson 13 Practice 1, to turn off this default setting go to your Debug view, open the Options dropdown, and de-select “Break on Exceptions”.