Use exception popup when exception occur?

How to use the Message Box when some exception occurs. Like if an exception occurs and it display in a message box

Hi @balkishan.
Do you have a Try Catch activity? :slight_smile:

Hello There,

Please use msg box in Catch block like below
Code: exception.tostring

No @Jan_Brian_Despi

1 Like

Are you using REFramework?

Just I created a demo process. so there I want to use that

1 Like

Please use a Try Catch activity :slight_smile:
THen in the Catch state, use a Message Box activity
Then to output the source where the exception occurred, use exception.source
For the message of the exception, use exception.Message.

1 Like

Exception can be occur anywhere. It can we oocur in email part, login, or data entry anywhere.

As far as I’m aware, exception.Source works nice only for Invoked process parts. Catched under simple workflow (not invoked) will output only “UiPath.Activities”, which lacks information.

2 Likes

You can wrap the whole process with TryCatch to avoid process being not correctly ended. If you know the particular places, when the exception can occur, you can always try to wrap smaller parts to identify exceptions in a more detailed way. (e.g. separate business exceptions and system exceptions)

1 Like

Please try working with Global Exception Handler. Documentation below:

Hope this helps

1 Like