Try & Catch Explanation

I am trying to learn OpenRPA and its various error handling processes.
Now I am trying to make sure it fails in the try clause so I can see how the catch operates. But let’s say I write to line a string without the quotations within the try, the entire sequence fails because of that error. Maybe I am using the command incorrectly?

Please advise, and do recommend any error handling techniques available within OpenRPA.

I believe the error you have tried to simulate is on compile-time which means that the flow will not run at all. If you want to test out the the catch part you can simply just drag in the “Throw business exception” activity into the try scope. This should simulate an error on run-time.
Let me know if this helped :slight_smile:

2 Likes

yeah, or do a division by zero, that is always a winner too.

or you could add a “invoke code” activity and doing something that will error out ( you need to add scripting after running openrpa.msi to use that )

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.