When an n8n workflow fails, you can choose what happens next. n8n's answer is an error workflow: a second workflow that starts when the first one fails. This is a short guide built from n8n's own docs (Handle errors gracefully, Error Trigger), read on Nov 28, 2026. It is a documentation reading, not a test run.

How the setup works

  1. Create a new workflow with the Error Trigger as its first node.
  2. Name it, for example Error Handler, and save it.
  3. In the workflow you want to protect, open Options > Settings and pick that workflow under Error workflow. Save.

From then on, when the protected workflow fails, the error workflow runs. One error workflow can serve many workflows. The docs suggest using it to send email or Slack alerts.

What the error workflow receives

The Error Trigger passes the execution details: the error message and stack, the last node that ran, the execution mode, and the workflow id and name. If the execution was saved, it also gets an execution id and URL. If the failed run was a retry, a retryOf field points to the original execution.

A failure in the trigger node of the main workflow is different. The workflow never executes, so there is no execution id or URL. The data comes in a trigger section instead, with the error name, cause and timestamp.

Things that catch people out

  • The Error Trigger only runs for automatic executions. Per the docs, you cannot test an error workflow by running the workflow manually.
  • The workflow that uses the Error Trigger has to be published.
  • If a workflow contains an Error Trigger node, by default it uses itself as its error workflow.

Failing on purpose

Some bad outcomes are not errors to n8n. A lookup that returns nothing, or a value that is out of range, will not stop a run by itself. The Stop And Error node lets you force a failure under conditions you choose, which then starts the error workflow and sends it your custom message. That turns a silent wrong result into an alert.

Checklist

  1. Make one shared Error Handler workflow and point your important workflows at it.
  2. Put the workflow name, last node and execution URL in the alert, so whoever reads it can open the failed run.
  3. Add Stop And Error where "no result" or "bad value" should count as a failure.
  4. Do not wait for a manual test to prove the alert works; the docs say it will not fire that way. Plan a real automatic run.
  5. Check trigger failures separately, since they carry less information.

Sources: https://docs.n8n.io/flow-logic/error-handling/ , https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.errortrigger/

Digital Nerve: YouTube https://www.youtube.com/@DigitalNerveOfficial Facebook https://www.facebook.com/digitalnerveofficial Instagram https://www.instagram.com/digitalnerveofficial/ TikTok https://www.tiktok.com/@digitalnerveofficial DEV https://dev.to/digitalnerve Medium https://medium.com/@digitalnerveofficial