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

text
exception
info

#1

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.


#2

@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


#3

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


#4

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

Regards,
Dominic


#5

Great, thank you!

Regards,
Stefan


#6

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?