Lesson 11 Orchestrator Practice (Queues): Try/Catch for 'Cint' not working?

Hi,
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.”

Hi @Ezra_Teferra,

Welcome to UiPath Community.
In the catch block you have to tell it what to catch. For example

  • exact exception (Invalid Cast Exception)
    or
  • all exception (System)

image


1 Like