n8n error handling: error workflows, retries and alerts
Set one error workflow, retry the flaky calls, and alert with a link
n8n error handling comes down to four settings. Point every production workflow at one error workflow that starts with the Error Trigger and sends an alert with the workflow name, the failed node and a link to the run. Turn on Retry On Fail for nodes that call other services, give risky nodes an error output with a fallback, and use Stop And Error when the data itself is wrong.
The reason to bother is that a failure in production is quiet. When a node's On Error setting is Stop Workflow, a failure halts the whole execution, as the node settings docs describe. In the editor you see the node turn red at once. In production the only trace is a row marked Failed in the Executions list, and you only see it if you go looking.
That matters most on a self hosted instance, where no vendor is watching the server for you. If you run n8n yourself, as in how to host n8n on Google Cloud's free tier with Docker, the alerting below is the part that tells you something broke. Everything here comes from n8n's own documentation, checked on 23 October 2026, and the example near the end is a sketch of a typical lead form workflow rather than a client build. More guides live in the n8n category.
If a silent n8n failure has already cost you a lead or an order, we can look at which of your workflows still have no error path. Book a call with GenovaFlow AI
An error workflow catches every failed production run
An error workflow is an ordinary workflow whose first node is the Error Trigger. n8n runs it when an execution of a linked workflow fails, and one error workflow can serve as many workflows as you like, which is what people mean by global error handling in n8n. The error handling docs give the setup in three moves:
- Create a new workflow with the Error Trigger as its first node, name it something like
Error Handler, and save it. - Open the workflow you want to watch, open its Options menu (the three dots) and choose Settings.
- Under Error Workflow, select
Error Handlerand save.
Three details from the Error Trigger docs save a lot of confusion. The error workflow itself does not need to be published, and a workflow that contains an Error Trigger uses itself as its error workflow by default. The third catches nearly everyone: you cannot test an error workflow by running a workflow manually, because the Error Trigger only runs when an automatic execution fails.

So test it the way it will really fire. Publish a small throwaway workflow on a Schedule Trigger, put a Stop And Error node after it, link it to your error workflow and let one scheduled run fail. If the alert arrives, the wiring works, and you can unpublish the test.
The error workflow's own runs cost nothing against your plan, because n8n's executions docs list error workflow executions among the runs that do not count toward the execution quota. That is worth knowing on a platform billed per execution, which is how n8n prices its plans compared with Zapier and Make.
Put the workflow name, the failed node and a link to the run in the alert
The Error Trigger hands your error workflow one item that describes the failure. According to the error handling docs, it holds an execution object with the run's id, its url, the error message and stack, lastNodeExecuted and the mode, plus a workflow object with its id and name. A retryOf field appears only when the failed run was itself a retry.
Those fields are enough for an alert someone can act on without opening n8n first. A Slack, Gmail or Telegram node placed after the Error Trigger can send a message like this one, written with n8n expressions:
Workflow failed: {{ $json.workflow.name }}
Node: {{ $json.execution.lastNodeExecuted }}
Error: {{ $json.execution.error.message }}
Open the run: {{ $json.execution.url }}Two cases change what arrives. The id and url exist only if the execution was saved to the database, so an instance that does not save failed production executions sends alerts with no link. And when the failure is in the trigger node itself, the workflow never ran, so the docs say there is less information in execution and more in a trigger object. An alert that checks for trigger before reading execution covers both.
Where the alert goes is a team choice. Telegram suits a solo operator, and building a Telegram bot in n8n covers creating the bot and its credential. The same habit shows up in the YouTube cross posting workflow, which ends with one Telegram message listing the result of every route, so a null ID shows at a glance which route failed. If you want a history to look back on, have the error workflow log each failure to a sheet or table as well.
Retry the calls that fail for a moment, and give the rest an error output
Most failures in business workflows are a service that did not answer this time: a CRM timing out, an API rate limit, a short outage. Retry On Fail is built for those. In a node's Settings tab it reruns the node when it fails, as the node settings docs describe, and the two fields that come with it, Max. Tries and Wait Between Tries (ms) as they are named in n8n's issue tracker, set how many attempts it makes and how long it waits in between. Use it on HTTP Request nodes and app nodes that call other services, and be careful where a repeat could perform the action twice, such as sending a message.

The On Error setting decides what happens when the node still fails after its retries. Stop Workflow halts the whole execution, which is what fires your error workflow. Continue moves on to the next node using the last valid data, which keeps the workflow running but hides the failure unless you check for it. Continue (using error output) gives the node a second output that carries the error information, so you can wire a real fallback onto it.
Retries and an error output are meant to work together, with one version note. An older bug made n8n ignore the retry settings when On Error was set to a Continue option; the GitHub issue was reported on n8n 1.35.0 and the fix shipped in n8n 1.43.0, so make sure your instance is on that version or later before you rely on both at once.
Keep the fallback honest about what it is: the place where a person picks the work up. Deciding when automation should stop and hand over is the same question as when an AI agent should hand off to a human, and the answer there applies here too: a failure threshold you can count beats a feeling that something might be wrong.
Stop And Error turns bad data and empty runs into real failures
Not every problem throws an error. A form can arrive without an email address, or an API can answer with an empty list, and n8n treats both as normal. The Stop And Error node exists for these cases: it fails the execution on purpose and sends your own error information to the error workflow, either as a plain Error Message or as an Error Object written in JSON.
Put it behind an IF node that checks whatever must be true before the workflow continues. If a lead has no email, route that branch to Stop And Error with a message such as Lead form arrived without an email, and the alert names the exact problem instead of a vague failure three nodes later.
Empty runs need one more setting. When a node returns zero items, the nodes after it do not run and the execution still ends as Success, so no error workflow fires. A thread on the n8n community forum collects cases of exactly this, including branches skipped for weeks while every run reported success. Always Output Data closes the gap: it makes a node return an empty item even when it gets no data, per the node settings docs, so an IF node after it can send the empty case to Stop And Error. The same docs warn that setting it on IF nodes could cause an infinite loop, so set it on the node that fetches and keep the check separate.
One failure no node inside the workflow can report is the run that never starts, because its trigger stopped firing. For that, the same forum thread suggests a scheduled check that alerts when a workflow's last run is too old, and a monitor outside n8n that reads the execution history, which still notices a trigger that has died.
Keep failed executions long enough to debug and retry them
An alert is only half useful if the run behind its link is gone. In Workflow settings, Save failed production executions controls whether n8n keeps failed runs of published workflows, as the workflow settings docs explain, so keep it on. On self hosted n8n the instance default is EXECUTIONS_DATA_SAVE_ON_ERROR, set to all out of the box, and pruning deletes old runs on a rolling basis: according to the executions environment variables, EXECUTIONS_DATA_MAX_AGE defaults to 336 hours and EXECUTIONS_DATA_PRUNE_MAX_COUNT to 10,000 executions. An error you notice two weeks late may already be gone.
With the run saved, there are two ways back in. In the Executions list you can filter by status, open a failed run and choose Debug in editor, which copies its data into the workflow and pins it in the first node, per the debug docs. Or you can retry it: with the currently saved workflow if you fixed something, or with the original workflow if the cause was outside n8n.

Retries resume from the saved state rather than starting again from the trigger, and that has a catch the executions docs spell out. The failed node processes every item again, including items it handled before it failed, so a node that sent some messages before it failed sends those messages again. Check the target app before you retry, and retry either the original run or a failed retry of it, never both.
Timeouts belong in the same pass. Workflow settings has a Timeout Workflow option that cancels an execution after the time you set. On self hosted n8n, EXECUTIONS_TIMEOUT sets a default for every workflow and is -1, meaning off, unless you change it, while EXECUTIONS_TIMEOUT_MAX caps what a single workflow can set at 3600 seconds by default, according to the same environment variable reference. Set one on anything that waits on a slow service, so a stuck run ends instead of hanging.
A worked example: a lead form whose CRM call fails
Here is how the pieces fit on a common small business workflow. It is an example, not a client build: a website form posts a lead to n8n, n8n creates the contact in a CRM, and a sales person gets a message. The CRM call is the step most likely to fail, and losing a lead there is the expensive kind of silent failure.
- The trigger receives the form. An IF node checks that the email field exists, and its false branch goes to Stop And Error with the message
Lead form arrived without an email. - The HTTP Request node that creates the CRM contact has Retry On Fail turned on with a few tries and a short wait, and On Error set to Continue (using error output).
- The success output notifies sales as before. The error output appends the lead to a Google Sheet called
Leads to enter by handand posts a Slack message with the lead's name and the error. - In Workflow settings, Error Workflow points at
Error Handler, Save failed production executions is on, and Timeout Workflow is set.
Now trace a CRM outage through it. The first attempt fails and the node retries; if the CRM is still down after the last try, the lead lands in the sheet and someone hears about it in Slack, so nothing is lost. If the sheet append fails too, that node has no error output, the execution fails, and the error workflow sends its alert with a link to the run. Every path ends with a person knowing what happened.
Before you publish any workflow your business depends on, check it against this list:
- The Error Workflow setting points at an error workflow that starts with the Error Trigger.
- That error workflow was proven by a real automatic failure, not a manual run.
- The alert carries the workflow name, the failed node, the error message and the execution URL.
- Nodes that call other services have Retry On Fail, unless repeating their action would cause harm.
- Nodes with a sensible fallback use Continue (using error output), and the error branch is wired.
- An IF node and Stop And Error check the fields the workflow cannot run without.
- Any fetch that might return nothing has Always Output Data and a check after it.
- Save failed production executions is on, and someone opens the Executions list filtered to Failed every week.
- Timeout Workflow is set on anything that waits on a slow service.
If you would rather have workflows like this built with the error paths wired from the start, that is part of how GenovaFlow builds custom AI agents and automations for clients.
Questions people ask
Why does an n8n error workflow not run when you test it?
Because n8n only runs an error workflow when an automatic execution fails. The Error Trigger docs say you cannot test error workflows when running workflows manually. To test one, publish a small workflow on a Schedule Trigger with a Stop And Error node, link it to your error workflow in Workflow settings, and let one scheduled run fail.
Can one error workflow handle all your n8n workflows?
Yes. n8n lets you use the same error workflow for multiple workflows, so most teams keep one, named something like Error Handler, and select it under Error Workflow in each workflow's settings. The setting lives on each workflow, so choose it on every new workflow before you publish it.
What is the difference between Continue and Continue (using error output) in n8n?
Continue moves on to the next node using the last valid data, so the workflow keeps going and the failure is easy to miss. Continue (using error output) adds a second output to the node that carries the error information, so you can wire a fallback, such as saving the item to a sheet and alerting someone. Both are On Error options in the node's Settings tab.
Do n8n error workflow executions count toward your plan?
No. n8n's executions documentation list error workflow executions among the runs that do not count toward the execution quota, along with sub workflow executions and polls that return no data. Only production executions count, so an error workflow that alerts on every failure does not eat into your plan.
How do you catch an n8n workflow that succeeds but does nothing?
Turn on Always Output Data on the node that might return nothing, so it passes one empty item instead of stopping the flow. Then add an IF node that checks for a field every real record has, and send the empty case to a Stop And Error node. The run then fails, and your error workflow alerts on it.
Sources
- Handle errors gracefully (error workflows), n8n Docs
- Error Trigger node, n8n Docs
- Stop And Error node, n8n Docs
- Node settings, n8n Docs
- Workflow settings, n8n Docs
- Executions environment variables, n8n Docs
- View all executions, n8n Docs
- Understand executions, n8n Docs
- Debug executions, n8n Docs
- HTTP Request Node: Incompatible error handling options, issue #9236, n8n-io/n8n on GitHub
- The silent failure: when your n8n workflow succeeds but does nothing, n8n Community