Handling run-time error from the Application being automated using UiPath

Hey @Nilabja.Saha

When dealing with Application error messages and alerts what we can do is to make custom error message by detecting them and can throw custom exception and then you will be able to catch it in try-catch.


  1. Detect Alert/pop up by using “Element Exists” .
  2. If it will return true then you can use Either Directly “Throw” activity with custom error message or can use "Microsoft->Activities->Expressions->Custom Exception activity as well.
  3. in catch block handle it.

For your reference:

Let me know in case of any problem :slight_smile: