Capture Exception String in TryCatch
Hello, 

I am trying to capture exception messages in a workflow and insert it into a SQL table along with several other bits of information. I've gotten it to where all the fields populate how I want them to, but I can't figure out how to get a usable exception string. I am not very familiar with Try Catch activities or exceptions.
Normally when something goes wrong, I get a message like the following:

However, when I use a Try Catch activity (with exception type System.Exeption) and put exception.ToString in an alert, I get the following:

This is not what I want at all. At the very top, it has the exception type, which is useful, but it does not tell me which activity caused the exception, which would be even more useful. The rest of the message means nothing to me.
Can anyone tell me how I can capture an exception string that is more like what the alert shows when there is no Try Catch activity?
Any help would be much appreciated!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare