Raise Exception Message

I have a Raise Exception event with Error Message saying "ABCD Went Wrong". The flow moves to the "On Failure" side which is expected. Is there a way to get/show/view/print this message within the "On Failure" events so the message can be emailed to someone?

Hi

Within the OnFailure action list you can use the Export Log action and export only actions in error to an xml file, which you can read using the XML actions.

I have attached an example project of how you can do this.

Regards

Steve

ReadLog.atz3 (4.281 KB)

Thanks.. I thought maybe there is an easier "catch" action or something that I am missing. Although your solution works it's too much work

Hi

The example I attached can be used to catch unexpected errors. If there is a particular set of actions that may fail due to a reason beyond your control (such as an offline resource) then you can wrap these in a try/catch block and use the catch action to store the error details in a variable.

Regards
Steve

I tested your solution and it works great to catch any errors and report them! However in this case I was just looking to catch errors that are explicitly thrown with the "Raise Exception" in the "Main" event with a one line code