Try Catch is not catching UiAutomationNext

Hello, I have a script that opens a web browser and interacts with it. And now I want to add a Try Catch activity to catch any error that occurs during the execution and send notification email that robot stopped working.

So I added a Try Catch activity and put my whole script into the “Try” section. In the “Catches” section I added System.Exception and activity with sending an email. But when my script faces any error email is not sending. Maybe the thing is that my errors are: UiPath.UIAutomationNext.Exceptions…

Have you faced such problem? Is there a way to catch any error?

Hi @nika

Please check the below thread

Regards

Hello, @vrdabberu
Thank you! It works

1 Like

Hi @nika

You’re welcome.

Happy Automation!!

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