The practice in this lesson requires exception handling when converting transaction values into integers.
I used an ‘Assign’ activity with the ‘Cint’ function. When it inevitably encounters an input with letters instead of numbers, shouldn’t it just execute the ‘Catch’ block and move on?
Instead, the process breaks and displays an error “Assign: Conversion from string “3P10.99” to type ‘Integer’ is not valid.”
Welcome to UiPath Community.
In the catch block you have to tell it what to catch. For example
- exact exception (Invalid Cast Exception)
- all exception (System)