I created a customer error handling workflow. I am trying to figure out how to use it both as a default for a workflow and also execute it from an Error Branch. Is this possible?
So when I use the Success/Error path to execute the Error handler workflow, its working fine. However, when I have the On Error - Stop Workflow setting set. The Error handler workflow does not execute despite having it set as the default error handler the workflow settings.
*I’ve been trying to edit my post to add the 2 workflows, but doesnt seem to work. So I pasted them below. *
Ok, it works. The problem was I only executing test runs. I didn’t realize the default Error Workflow doesn’t kick in when in test mode.
But a side thing I noticed was if a primary and sub-workflow both use the same default Error Workflow, we’ll see duplicate error events. Example scenario:
Primary workflow and subworkflow both have uses same Error Workflow
Primary workflow runs fine and executes subworkflow. Subworkflow hits an error.
Error workflow executes for both Primary and Subworkflow.
Something helpful may be a stacktrace of workflow names?