n8n error workflow not triggering? The causes, and how to fix each

Updated 7 min read

On this page
  1. How an error workflow is meant to work
  2. The causes, in the order to check them
  3. Report failures somewhere that also notices silence
  4. Test it
  5. FAQ
  6. Sources

An n8n error workflow only runs when a production execution of a linked workflow fails. It doesn't run for manual test runs, for workflows that don't name it under Settings > Error Workflow, or when a node set to On Error: Continue lets the execution carry on. Check those three first. Then add a heartbeat, because an error workflow can never tell you about a run that didn't happen at all.

How an error workflow is meant to work

n8n's docs describe it in three parts:

  • The error workflow starts with the Error Trigger node.
  • Each workflow you want covered names it under Settings > Error Workflow (to notify when this one errors). You can use the same error workflow for many workflows.
  • When an execution of that workflow fails, n8n runs the error workflow and passes it details of the failure: the execution, the error message, the last node that ran and the workflow's name.

A workflow that uses the Error Trigger doesn't have to be published, according to the Error Trigger docs.

The causes, in the order to check them

1. You tested it with a manual run. The Error Trigger only runs when an automatic workflow errors. n8n's docs say you can't test error workflows when running workflows manually. A failure you trigger with Execute workflow in the editor won't start it. Test with a published workflow that runs on its own schedule, as shown under Test it below.

2. The failing workflow doesn't name it. The setting lives on the workflow that fails, not on the error workflow. Open the failing workflow, select the Workflow menu in the upper-right corner, then Settings, and check Error Workflow. Every workflow you want covered needs this set.

3. The execution didn't fail, because a node continued on error. A node's Settings tab has an On Error option. Stop Workflow halts the execution. Continue proceeds to the next node using the last valid data, and Continue (using error output) passes the error to the next node. With either Continue option, the node's error doesn't fail the execution, so there's nothing for the error workflow to catch. If you want the error workflow to run, set the node back to Stop Workflow, or route the error output to a Stop And Error node so the execution fails on purpose.

4. A retry hid the failure. Retry On Fail reruns a node when it fails. If a later attempt succeeds, the execution succeeds, and the error workflow has nothing to report. That's usually what you want, but it explains a flaky API that never shows up as an error.

5. The workflow isn't in production. Production executions need a trigger other than the manual trigger and a published workflow. If the workflow was never published, or was unpublished, it doesn't run automatically, so it can't fail automatically either.

6. The error was in the trigger node, and your expression read the wrong field. When the trigger node of the main workflow fails, the workflow never executes. The error workflow still runs, but the data is different: there's less under execution and more under trigger, and execution.id isn't present. An expression that only reads $json.execution.error.message gets nothing, and an HTTP Request node that relies on it may send an empty message. Read both, as the snippet below does.

7. Nothing failed: the run was empty, or didn't happen. An error workflow reacts to failed executions only. An API that returned an empty list, an AI node that returned a blank answer, or a schedule that stopped firing produces no failure. The error workflow is working as designed. You need a different check for these, which is the heartbeat below.

Two more details from n8n's docs that can look like a broken error workflow:

  • execution.id and execution.url need the execution to be saved in the database. If the failing workflow doesn't save failed production executions (the Save failed production executions workflow setting), expect them to be missing.
  • If a workflow contains the Error Trigger node, by default it uses itself as its error workflow.

Report failures somewhere that also notices silence

An error workflow is half a monitor. It tells you when a run fails. It can't tell you when a run never started, or started and hung. A heartbeat covers both: the workflow pings a URL when it finishes, and an outside monitor alerts you when the ping doesn't arrive on time.

With Stallbell, the error workflow and the heartbeat report to the same monitor:

  1. In Stallbell, create a monitor whose schedule matches the workflow's Schedule Trigger, and copy its ping URL, https://stallbell.com/p/TOKEN.
  2. At the end of the watched workflow, add an HTTP Request node: Method POST, URL https://stallbell.com/p/TOKEN/0. In its Settings tab, turn on Execute Once and Retry On Fail, and set On Error to Continue so a monitoring problem can't fail your workflow.
  3. In the error workflow, after the Error Trigger, add an HTTP Request node: Method POST, URL https://stallbell.com/p/TOKEN/fail, Send Body on, Body Content Type JSON, Specify Body Using JSON, and this in the JSON field in expression mode:
n8n expressions
{{ JSON.stringify({
  run_id: $json.execution?.id ? String($json.execution.id) : undefined,
  msg: String($json.execution?.error?.message || $json.trigger?.error?.message || $json.trigger?.error?.name || "n8n workflow failed").slice(0, 500)
}) }}

The expression reads the error message from execution for a normal failure and from trigger when the trigger node failed, falls back to the error name when the message is empty, and leaves run_id out when n8n sends no execution ID. Stallbell keeps up to 500 characters of msg and puts it on the Failure line of the alert.

The full setup, including a start ping so Stallbell can also catch runs that hang, is in how to monitor n8n workflows.

Test it

  1. Check the Stallbell side from a terminal. This should return {"ok":true,...} and open a Failed run incident on the monitor:

bash curl -fsS -m 10 -X POST "https://stallbell.com/p/TOKEN/fail" \ -H "content-type: application/json" \ -d '{"msg":"test failure from curl"}'

  1. Check the n8n side with a real failure. Add a Stop And Error node to the watched workflow with an Error Message such as test failure, publish the workflow on a short schedule, and let it run on its own once. The error workflow should run, and the alert should show test failure. Remove the node afterwards.
  2. Check the heartbeat: unpublish the workflow and wait past its next expected run plus the monitor's grace period. You should get a Missed run alert, even though nothing failed.

FAQ

Can one error workflow cover several workflows? Yes. n8n's docs say you can use the same error workflow for multiple workflows. If each workflow reports to its own Stallbell monitor, give each one its own small error workflow, so the fail ping goes to the right URL.

Do error workflow runs count toward my n8n execution quota? n8n's docs list error workflow executions among the runs that don't count toward the quota.

Why does the error workflow run for a node I set to Continue? It shouldn't for that node's own error. If it does, another node later in the run probably failed. Open the failed execution from the workflow's Executions tab to see which node.

What does it cost? There's a Free plan with no card. Plans and limits are on the pricing page.

Related: How to monitor n8n workflows · n8n workflow stopped running · What is heartbeat monitoring?

Sources

n8n behaviour on this page comes from n8n's own docs, read on 9 November 2026:

Stallbell's side comes from the docs.