How to get exception message and other exception info as a variable?

When my process failes I would like to store the exception message, and the name of the Activity that failed, as variables. I have not been able to find these pieces of information.

1 Like

@Stefan1, basically you need to use the Try-Catch Activity. Enclose all activities you want to perform in TRY block and in catch block declare a variable (say ex), Now if you access by ex.Message it displays the exception message

Regards,
Dominic

1 Like

Thanks Dominic!
I tried this, and it works fine. However, I can not fin the variable that gives me the specific activity that failed

Regards,
Stefan

@Stefan1,How to get Exception source "Activity Description name"
Hope this helps you !

Regards,
Dominic

1 Like

Great, thank you!

Regards,
Stefan

How can we get the activity details in the exception type while handling the exception ?

(I want to get the exact activity name or type of the activity in which the exception is occurring)
what type exception should we use to get it done?

Please open a new topic and reference this one if you have the same question