OL Learn

How to get the actual Error Message from a task into the Error Handling Process

I know there is the %{error.errormsg} variable, and that it will carry the value entered in the “Log Message” field of the On Error task… but I don’t want a custom message, I want the actual error message. How do I get that into the error handling process?

1 Like

That feature is scheduled for the 2019.1 release. Currently, there is no way to obtain that information unless you’re bold enough to try parsing the logs by yourself…

I found it! Sorry, Phil, I emailed you directly a little while ago because I couldn’t find this thread. I don’t see any changed behavior and I’m running on 2020.1. The “error.errormsg” variable still comes through blank.

What’s the deal, dude?

The feature was actually implemented in version 2019.2.

Just tested it here and it works as expected.

One thing though: the error.errormsg variable contains whatever custom message you entered in the On Error tab for the task. If you want to access the actual error message logged by the task, you have to use the error.errorlog variable.