// guides · n8n error index

n8n error workflow not triggering? 17 tests of the Error Trigger

Why an n8n error workflow does not run when a workflow fails: an unpublished handler, no Error Trigger node, Continue On Error, retries, manual and CLI runs, plus Stop and Error messages and localhost links. 17 real runs on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. The error workflow is not published: it never runs, silently

    This was the most common silent failure in our tests. The failing workflow pointed at a handler with an Error Trigger, but the handler was not published (active). The handler never ran, nothing showed in the editor, and the only trace was a warning in the n8n server log: Calling Error Workflow for "..." Workflow "..." is not active and cannot be executed. After publishing the handler, the same failure triggered it. On n8n 2.43.7 the error workflow must be published, whatever older forum answers say. On Docker, check with docker logs n8n 2>&1 | grep "Error Workflow".

  2. Error Workflow not set, or pointing at the wrong workflow

    n8n only calls an error workflow when the failing workflow names it under Workflow Settings → Error Workflow. With nothing set, a failure ran nothing and logged nothing. When the setting pointed at a deleted workflow, n8n logged the same is not active and cannot be executed line and went on. Imported or duplicated workflows keep their old setting, so open the settings of the workflow that fails, not the handler, and pick the handler again.

  3. The handler has no Error Trigger node

    The handler must start with an Error Trigger node. A handler with a Manual Trigger could not be published and never ran (same log line). A workflow set as its own error workflow without an Error Trigger logged Could not find "n8n-nodes-base.errorTrigger" in workflow. Adding an Error Trigger branch inside that same workflow worked: only that branch ran on failure, so one workflow can handle its own errors.

  4. Continue On Error and successful retries skip it

    The error workflow runs only when the execution ends in error. With a node's Settings → On Error set to Continue (regular output) or Continue (using error output), the execution ended as success and the error workflow was not called, even though the node failed. Retry On Fail with a later try that succeeded also never called it. When every retry failed, it was called once, with the last HTTP reply in error.description. If you catch errors on purpose, send the alert yourself from the error output, or end that branch with a Stop and Error node.

  5. Manual and CLI runs do not trigger it

    A workflow run with n8n execute --id on the command line failed as expected, but the handler never ran: the log said Calling Error Workflow for "...": "Driver has already been released." n8n's docs say runs started with the editor's Execute workflow button do not call the error workflow either (we did not test the button). Test your alert with a real trigger: call the production webhook URL, or let the schedule fire, with a node that fails. See n8n webhook not working for test vs production URLs.

  6. Stop and Error shows {{ $json... }} in the alert

    A Stop and Error node triggers the error workflow, and its text becomes execution.error.message. Typed in Fixed mode, Order {{ $json.query.id }} has no email reached the handler with the braces as plain text. Switching the field to Expression gave Order 42 has no email. Code node errors arrived with [line 1] added to the message. More on this: n8n expression errors.

  7. The execution link in the alert points to localhost

    The Error Trigger output is { execution: { id, url, error: { message, name, description, node, stack }, lastNodeExecuted, mode }, workflow: { id, name } }. With no public URL configured, execution.url was a http://localhost:.../workflow/<id>/executions/<n> link, which is useless in an email or Discord alert. Setting N8N_EDITOR_BASE_URL to your public n8n address should fix it (not tested). A handler that throws calls its own error workflow if one is set in its settings; we saw no loop.

What we ran

On 25 October 2026 we ran 17 failing executions on self-hosted n8n 2.43.7 (n8n start, SQLite). The failing workflows were published webhook workflows with Workflow Settings → Error Workflow set; the handler was an Error Trigger followed by an HTTP Request that posted {{ JSON.stringify($json) }} to a local capture server, so we saw exactly what each handler received. We checked every run in the executions table and the server log.

What we ranWhat happened
Webhook workflow, Code node throws, Error Workflow = published handlerHandler runs (mode error); the webhook caller still got 200 Workflow was started
No Error Workflow set in the failing workflow's settingsNothing runs, no log line
Handler with an Error Trigger, not publishedNever runs. Server log only: Workflow "..." is not active and cannot be executed
Same handler after publishing itRuns
Handler with a Manual Trigger instead of an Error TriggerNever runs, same is not active and cannot be executed line
Error Workflow pointing at a deleted workflowNever runs, same log line
Workflow set as its own error workflow, no Error TriggerLog: Could not find "n8n-nodes-base.errorTrigger" in workflow
Same, with an Error Trigger branch added inside itThe Error Trigger branch runs
On Error = Continue (regular output)Execution success, error workflow not called
On Error = Continue (using error output)Execution success, error workflow not called
Retry On Fail, 2nd try succeedsSuccess, not called
Retry On Fail, every try failsCalled once, error.description has the last HTTP reply
Handler that itself throwsIts own error workflow runs, workflow.id = the handler, no loop
Stop and Error, message in Fixed mode with {{ }}Called; message keeps the braces as text
Stop and Error, message in Expression modeCalled; Order 42 has no email
CLI n8n execute --id of a failing workflowHandler never runs: Calling Error Workflow for "...": "Driver has already been released."
Payload execution.url with no editor URL setA http://localhost:<port>/... link, unusable in alerts

Checklist

Want a ready alert handler that posts the failed node, message and execution link to Discord? Use the n8n error workflow and nightly backup guide. Error workflows only fire on failures: for workflows that silently stop running, add a heartbeat.

Want the failed run to carry an order id or customer email into the alert? Save it with the Execution Data node first, and avoid its silent drops: n8n Execution Data node not saving.

What we did not test

The editor's Execute workflow button, N8N_EDITOR_BASE_URL, trigger nodes that fail to start (their payload has trigger instead of execution), queue mode, n8n Cloud and the editor UI.

FAQ

Why is my n8n error workflow not triggering?

Most often the error workflow is not published, or the failing workflow does not name it under Workflow Settings → Error Workflow. The only trace is a server log line saying the workflow "is not active and cannot be executed".

Does an n8n error workflow need to be active?

Yes, on n8n 2.43.7. An unpublished handler never ran in our tests; publishing it fixed it.

Why does the Error Trigger not fire when a node fails with Continue On Fail?

With On Error set to Continue, the execution ends as success, so no error workflow is called. Alert from the error output or end the branch with Stop and Error.

Does the error workflow run for manual executions?

No. CLI runs failed to call it with "Driver has already been released.", and n8n's docs say editor test runs do not call it. Test with a production trigger.

Why does my Stop and Error message show {{ $json }} literally?

The field is in Fixed mode. Switch it to Expression so n8n fills in the values.

Why does execution.url in my n8n error alert point to localhost?

n8n builds the link from its configured URL. Set N8N_EDITOR_BASE_URL to your public n8n address (we did not test this fix).

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.