Error Handling - Combining Error trigger and Workflow trigger

Describe the problem/error/question

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?

What is the error message (if any)?

Please share your workflow


(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @jtoh,

I have never tried that before but I don’t see why it wouldn’t work, What happens when you try using it?

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. *

Workflow with forced error:

Error handler Workflow:

Hey @jtoh,

I suspect the Execute Workflow Trigger could be the cause there as both nodes try to do the same thing.

I will give this another test later today and update the documentation if it doesn’t work and create a feature request.

For now does it work if you use a different workflow for the error and have them split.

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:

  1. Primary workflow and subworkflow both have uses same Error Workflow
  2. Primary workflow runs fine and executes subworkflow. Subworkflow hits an error.
  3. Error workflow executes for both Primary and Subworkflow.

Something helpful may be a stacktrace of workflow names?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.