DEV Community

Viet Automation
Viet Automation

Posted on

Your n8n Error Workflow Never Fired: Continue On Error and Other Gaps (2026)

Why didn't my n8n error workflow fire?

Short answer: because the Error Trigger only starts when an automatic execution is marked as failed. Clicking Execute workflow never starts it, and a node with On Error set to Continue (older tutorials call this Continue on error) lets the run finish green, so n8n never calls the error workflow. The fix is to point every production workflow at a published error workflow, test it with an automatic failure, and for nodes that must keep going, use Continue (using error output) and actually handle that branch.

This came up on the n8n community forum on 20 November 2026. One builder set Continue on error on an AI classification node so a single bad item would not stop the run. The node failed, the execution finished green, the lead was saved with a blank category, and the error workflow never fired, "because from n8n’s side nothing failed." Switching to Continue (using error output) and writing the error branch back as a manual-review status made the failure visible in the data. (thread)

What the Error Trigger actually sees

n8n's Error Trigger docs are specific: it runs when a linked workflow fails automatically, and "You can't test error workflows when running workflows manually."

What you did What n8n records Does the error workflow run?
Manual Execute, a node throws Red execution in the editor No
Automatic run, a node throws (On Error: Stop Workflow) Failed execution Yes, if this workflow is pointed at a published error workflow
Automatic run, On Error: Continue Successful execution, later nodes may see stale or empty data No
Automatic run, On Error: Continue (using error output), error branch unwired Successful execution, failed items dropped No
Automatic run, error is in the trigger node Little or no execution id/URL Yes, but the payload looks different
Error workflow is unpublished, or this workflow has no Error workflow set Failed execution, nobody is told No

A green execution only means "nothing stopped the run." It does not mean every node did its job.

1. Set it up the way the docs describe

  1. Create a workflow whose first node is Error Trigger. Keep it small: build a short alert, then stop. If this workflow itself fails, you will not be told.
  2. Publish it. The docs say the workflow that uses the Error Trigger has to be published.
  3. In each production workflow: Options → Settings → Error workflow, and select the one you just published. New workflows do not inherit this. Set it on sub-workflows too, not only the parent.
  4. One error workflow can serve many workflows. Use {{ $json.workflow.name }} in the alert so you can tell them apart.

The Error Trigger item usually looks like this (field names from the docs):

  • workflow.name, workflow.id
  • execution.lastNodeExecuted
  • execution.error.message (and a stack trace; do not paste the stack into Slack)
  • execution.url and execution.id, when the run was saved
  • execution.retryOf, only when the run is a retry

If the trigger node itself failed, execution.url may be missing and more of the detail sits under trigger.error. Write the alert so it still makes sense in that case.

2. Test it with an automatic failure

A manual click will not tell you whether this works. Use Stop And Error, which n8n documents as the way to fail a run on purpose and start the error workflow.

  1. Make a tiny published workflow: Schedule Trigger or Webhook → Stop And Error.
  2. Point it at your error workflow.
  3. Let the schedule fire, or call the production webhook URL (not the test URL).
  4. You should get exactly one alert, with a link to the failed execution.
  5. Now click Execute workflow on the same canvas. You should not get a second alert. If you do, you are not looking at Error Trigger behaviour; something else is sending the message.

3. When a node must keep going, use the error output

Stop Workflow (the default) is what makes the execution fail and starts the error workflow. Use it when the rest of the run would be harmful or meaningless.

When one bad item should not abort a batch of 200, do not switch that node to Continue. Continue sends the last valid data into the next node, which is how a failed classification becomes a saved lead with a blank category. Instead:

  • Set On Error to Continue (using error output). The node gets a second output for failed items.
  • Connect that output to a path that marks the row needs_review (or AI_FAILED), stores the error message, and notifies someone.
  • Do not reconnect the error output to the "save as success" path.

That run may still finish green, so the Error Trigger still will not fire. That is expected. The error branch is now your alarm for node-level failures. The Error Trigger remains the alarm for executions that actually stop.

4. Do not let retries hide a permanent error

Retry On Fail reruns the node until it succeeds, or until the attempts are used up. The execution only fails after the last try, so the error workflow waits until then.

In the same community thread, a wrong API key with three tries and a two-second wait delayed the 401 alert until after those retries. A 401 or 403 will not fix itself on the next attempt; the retries only push the alarm back. Keep Retry On Fail for errors that are often brief (429, 5xx, timeouts), with a small attempt count. Leave it off for authentication and validation errors.

5. Close the other quiet gaps

  • Alert floods. A schedule that fails every minute will call the error workflow every minute. Before you send Slack or email, look up an "open incident" row for that workflow.id and only send when you open a new one (or when the last alert is older than a window you choose). Clear the row when the workflow has a successful run.
  • Secrets in the message. HTTP errors sometimes include the full request URL, query string and all. Map only execution.error.message (or trigger.error.message), strip query strings, and never send execution.error.stack to a chat channel.
  • The error workflow can fail, and n8n can be down. Keep the error workflow to one alert path with credentials you trust. An error workflow cannot tell you that the instance itself is off; that needs a separate uptime check.

A safe alert payload

Put a Code or Set node in the error workflow, then send only text to Slack, email or Telegram.

const d = $json;
const raw = d.execution?.error?.message || d.trigger?.error?.message || 'Unknown error';
const message = String(raw).replace(/\?[^ \n]+/g, '?[redacted]');
const nodeName = d.execution?.lastNodeExecuted || 'trigger';
const url = d.execution?.url || '';

return [{
  json: {
    text: [
      `n8n failed: ${d.workflow?.name || 'unknown'}`,
      `Node: ${nodeName}`,
      `Error: ${message}`,
      url ? `Open: ${url}` : 'No execution URL (the trigger may have failed before a run was saved)',
    ].join('\n'),
  },
}];
Enter fullscreen mode Exit fullscreen mode

Checklist

  • [ ] One published error workflow starting with Error Trigger
  • [ ] Every production workflow (and each sub-workflow) has it set under Settings
  • [ ] Tested with an automatic Stop And Error run; alert arrived once
  • [ ] The same workflow executed manually did not send a second alert
  • [ ] Nodes that must keep going use Continue (using error output), and the error branch writes a review status
  • [ ] No node uses Continue in a way that lets failed items look saved
  • [ ] Retry On Fail is on only for transient errors, not 401/403
  • [ ] Repeat failures from the same workflow do not flood the channel
  • [ ] Alert text has no stack trace and no URL query string

Bottom line

The Error Trigger is good at telling you a run stopped. It will not tell you about a node you told to continue, or about a failure you only ever reproduced by hand. Treat "execution failed" and "this item failed" as two different alarms, and test the first one with a real automatic run.

If you would rather send the alert from a visual scenario (Slack, email, a list of open incidents), Make can receive a webhook from the n8n error workflow and handle the notification and dedupe there.


Sources: n8n community thread collected 22 November 2026 (Asia/Saigon); official n8n Error Trigger docs (verified 22 November 2026, Asia/Saigon). Setting names and defaults can differ between n8n versions; check the docs for your version before applying.


Disclosure: Some links are affiliate links — I may earn a commission at no extra cost to you.

Top comments (0)