Disclosure first: this account is filochiaro, and we publish a paid PDF guide of n8n recipes in Italian. The useful part is below and needs no guide.
We set up a global error workflow and hit two things.
- The workflow starts with an Error Trigger. In every workflow you want to watch, you pick it in Settings > Error Workflow. One error workflow can serve all of them.
- On n8n 2.43.7 the error workflow runs only if it is published. The Error Trigger docs page still says it does not need to be. In the code, an unpublished error workflow “is not active and cannot be executed” (packages/cli/src/workflows/workflow-execution.service.ts in the n8n repo, tag n8n@2.43.7).
Two more things to check:
- A manual test run does not fire it. It only runs for failed automatic executions.
- If the error happens in the trigger of the watched workflow, the details arrive under
trigger, not execution.
Docs: Error Trigger | Nodes | n8n Docs
This is recipe 6 of «Ricette di automazione per n8n, Vol. 1» (Italian, 14 pages, six recipes, steps run on n8n 2.43.7 self-hosted). There is a free sample on the page: Guide. filochiaro
Hi filochiaro, Urška from n8n Support here.
Thanks for the detailed write-up, you’ve got this right. On current versions the error workflow does need to be published, otherwise it won’t run when one of your workflows fails, and since no execution is created you won’t see anything in its execution history either. That’s easy to miss, so it’s a good catch.
The docs still say publishing isn’t needed, which is outdated. I’ve passed that on so the page gets corrected.
Your other two points are correct as well: error workflows don’t run for manual test executions, and when the failure happens in the trigger node of the watched workflow, the details come through under trigger rather than execution.
Best,
Urška
Thanks for writing up the two gotchas. Two small additions that made our error workflows easier to use.
First, put enough context in the alert to act on it without opening n8n: the workflow name, the failed node, the error message and a link to the execution. The Error Trigger payload already carries these fields, so a single formatting step before the Slack or email node is enough.
Second, make sure the error workflow cannot fail in a loop. If it calls an external service that is down, it can raise its own error. Keep it short, add a simple retry on that notification step, and consider a plain email fallback.
To test it, trigger a real automatic failure, for example a Webhook-started workflow with a node that deliberately throws, since a manual run will not fire it, as you noted.
In n8n, error workflows generally require both the parent workflow and the error handler workflow to be toggled to active for the global trigger to catch failures. If they are both active and you are still experiencing silent failures, it is likely tied to how execution data is persisted in that specific point release. Let me know what error logs or execution status you see when the parent workflow fails, and we can troubleshoot the trigger configuration right here.
Building on Urška’s point that an unpublished error workflow leaves no execution at all: that means a broken error path looks exactly like a quiet, healthy week. A few ways it breaks without anyone noticing: someone unpublishes it while editing, its own Slack/email step starts failing, or a new or imported workflow ships without Settings > Error Workflow set.
Two cheap checks that close that gap:
-
A daily canary. A tiny workflow with a Schedule Trigger (say 09:00) and a Stop and Error node, with your error workflow set as its Error Workflow. Scheduled runs are automatic executions, so it fires the Error Trigger every morning. If the “canary” alert isn’t in the channel by 09:15, the error path is broken, not your workflows.
-
A weekly settings audit. Call GET /api/v1/workflows?active=true on the public API and list any workflow where settings.errorWorkflow is empty or points at an ID that no longer exists. Duplicated and imported workflows are the usual ones that slip through.
Both still run inside the same instance, so pair them with an uptime check on /healthz from somewhere else. If n8n itself is down, nothing inside it can tell you.
Hi @flowwatch, the canary still relies on someone noticing that an alert didn’t arrive. You can make the missing alert page you.
Add an HTTP Request node as the last step of the error workflow, after the Slack or email node, that calls a heartbeat check running outside n8n. Give the check a cron schedule of 0 9 * * * in n8n’s timezone, with half an hour of grace. When the canary fires and the alert goes out, the ping arrives. When the error workflow is unpublished, its Slack step fails, or n8n is down at 09:00, no ping comes and the outside service alerts you.
Pings from real failures later in the day don’t cover for a missed 09:00 run, because the check expects a ping after each scheduled time.
Thanks for the reply. Just to clarify, in our case the fix was publishing the error workflow itself. The watched workflow also has to run automatically with a real trigger, since manual test runs never fire the error workflow. No logs needed on our side, but if anyone still sees silent failures after publishing, check that Settings > Error Workflow is set on the watched workflow.