Quick answer
Build a separate Error alerts workflow that starts with the Error Trigger and sends a Gmail message, publish it, and pick it in each workflow's Settings under Error Workflow. On a flaky step, open its Settings tab, turn on Retry On Fail, and set On Error to Continue (using error output) to email that step's failures. Then use the Executions tab to retry a failed run.
Last updated · Last checked
Updated . Built against the tool’s current screens and checked step by step. How we check this lesson
When an n8n workflow fails, n8n does not tell you. It writes one red line in the Executions list and waits for someone to look. In this free n8n error handling tutorial you fix that for a small business whose morning workflow broke without anyone noticing. You build an error workflow with the Error Trigger that emails you when any workflow fails, make a flaky step retry by itself with Retry On Fail, send that step's failures down an Error output to an email alert, and use the Executions tab, n8n's run log, to retry the failed run.
At a glance
| Question | Answer |
|---|---|
| What you build | A silent failure means a stale price sheet and wrong quotes. In n8n, build an error workflow that emails you, make a flaky step retry by itself, send its failures down an Error output, and retry a failed run from Executions. |
| Tools | n8n |
| Time | About 10 minutes, 31 steps in 4 parts |
| Level | Intermediate |
| Cost | Free |
| Ways to learn it | Practice it step by step |
The 4 parts, in short
- Build an error workflow: Name the new workflow, Add the first step, Find the Error Trigger, Nothing to set up, and 8 more steps.
- Retry on fail: Go to Overview, Supplier price check, Open the supplier step, Settings, and 2 more steps.
- Catch the error and email it: On Error, Continue (using error output), Close the node, Add to the Error output, and 6 more steps.
- Check the run log and retry: Executions, Retry the failed run, Retry with the saved workflow.
Start here first: n8n: What Is n8n? Build Your First Workflow (module 1 of n8n Automation Toolkit)
In the course: Part 9 · n8n Automation Toolkit (Module 92 of the full course)
Part of: Get Data From the Web Into Your Automations (step 9 of 9)
Part of: n8n Jump Start (step 13 of 27). Next up: How to Create an AI Agent in n8n That Saves Ideas to Google Sheets
Part of: n8n Intermediate: Real Business Workflows (step 17 of 20). Next up: Guardian: Make Your n8n AI Agent Ask Before It Emails a Customer

What you will build
Maple Lane Florist, a small flower shop, has a workflow called Supplier price check. Every morning at 6 an HTTP Request step gets the supplier's prices and a Google Sheets step updates the price sheet. One morning the supplier's server is busy, the run stops, and nobody notices.
By the end, a published Error alerts workflow emails the owner whenever a workflow fails, and Supplier price check retries the supplier, emails the owner if it still fails, and points to Error alerts for everything else.
Who this n8n error handling tutorial is for
This module is for anyone with an n8n workflow that runs on its own and who wants to know the moment it breaks. No code needed.
Retry On Fail: let a flaky step try again
Retry On Fail is on every node's Settings tab. When it is on, two fields appear. Max. Tries is the number of times the step is attempted before the run fails, from 2 to 5, and starts at 3. Wait Between Tries (ms) is the pause between attempts in milliseconds, from 0 to 5000, and starts at 1000, one second.
Use it on steps that call another service, where a busy server usually clears up in seconds. Avoid it on steps that would do harm if they ran twice, such as charging a card.
On Error: Stop Workflow, Continue, or an Error output
On Error, also on the Settings tab, decides what happens when a step still fails. Stop Workflow is the default: it halts the run and marks it as failed, which is what triggers your error workflow. Continue passes the error message along the normal path as an item, so later steps run as if it were data. Continue (using error output) gives the step a second output, labelled Error, next to Success.
The Error output is the most useful of the three when you want the rest of the run to finish and still hear about the problem. Note that a step with an Error output no longer fails the run, so the error workflow will not hear about it; the Error output is its alert.
The error workflow and the Error Trigger
An error workflow is a separate workflow that starts with the Error Trigger node. You choose it per workflow in Settings, under Error Workflow (to notify when this one errors), and one error workflow can serve every workflow you own. It receives the failed workflow's name, the last node that ran, the error message and a link to the run.
Error workflows only run for automatic, production runs: a schedule, a form, a webhook or another trigger. They never run for a manual test with Execute workflow. In n8n 2.40 the Error Workflow list only lets you pick published workflows, so publish it.
Executions: the run log
The Executions tab lists every saved run, newest first, as Succeeded or Error with its run time. Open a run to see the failed step marked. For a failed run, the retry icon offers Retry with currently saved workflow or Retry with original workflow, both from the node with the error. The retry appears at the top of the list.
How the interactive lesson works
Every step is shown first on the left, in the Watch panel, with a short voice-over. Then you do it yourself on the right, in Your turn, on a practice copy of n8n. Nothing touches a real account.
Try it yourself, free
Reading the steps is a start. Doing them is how it sticks. The interactive module walks you through every click in a practice copy of n8n, checks each step, and never touches your real accounts.
Start “Error Handling Automation in n8n: Retry On Fail, Error Workflow and Alerts”Step by step: Error Handling Automation in n8n: Retry On Fail, Error Workflow and Alerts
All 31 steps of the interactive module, in order. In the module you watch each one, then do it yourself in a practice copy that checks your work.
1. Build an error workflow
- Name the new workflow. This is a new, empty workflow (on Overview, Create workflow). Click its name, My workflow, at the top and type Error alerts.
This morning, Maple Lane's supplier price check failed, and nobody found out. Let's fix that. First, a workflow whose only job is to email you when another one fails. This is a new, empty workflow.
- Add the first step. Click Add first step….
- Find the Error Trigger. In Search nodes..., type error and choose Error Trigger: *Triggers the workflow when another workflow has an error*.
Search for error, and choose Error Trigger. It starts this workflow whenever another workflow fails.
- Nothing to set up. The Error Trigger has no parameters, only a note. Close the node with the × at the top right.
There is nothing to set up here. It hands the next step the failed workflow’s name, the step that broke, the error message and a link to the run. Close the node.
- Add the email. Click the + on the right of Error Trigger.
Now the email.
- Find Gmail. Type gmail and choose Gmail.
Search for Gmail and choose it.
- Send a message. Under Message Actions, click Send a message.
Your Gmail account is already connected here. If yours is not, create the credential and sign in with Google.
- To. In To, type your address: rosa@maplelane-florist.example.
In the To field, type your own email address, one you actually read.
- Subject. In Subject, type A workflow failed.
For the subject, type A workflow failed.
- Switch Message to Expression. Point at the Message field and click Expression at its top right (next to Fixed).
The message will pull details from the Error Trigger, so it has to be an expression. Point at the Message field and click Expression, at its top right.
- Message. In the Message box (now marked fx), paste {{ $json.workflow.name }} failed at {{ $json.execution.lastNodeExecuted }}: {{ $json.execution.error.message }} See the run: {{ $json.execution.url }}. The parts in double curly braces come from the Error Trigger: the workflow's name, the last step that ran, the error message and a link to the failed run.
The parts in curly braces fill in from the Error Trigger: which workflow failed, the step that broke, the error message, and a link straight to the failed run.
- Close the node. Close the node with the ×.
Close the node.
2. Retry on fail
- Go to Overview. In the left sidebar, click Overview.
- Supplier price check. Click Supplier price check.
- Open the supplier step. Every morning at 6 it gets the day's wholesale prices from the supplier and updates the price sheet. Open the HTTP Request step Get supplier prices.
Every morning at six, it asks the flower supplier for today's prices and updates the price sheet. This morning the supplier's server was busy and said try again later, so the whole run stopped.
- Settings. Click the Settings tab, next to Parameters.
Most error handling lives on the Settings tab.
- Retry On Fail. Turn on Retry On Fail. Two new fields appear: Max. Tries (3) and Wait Between Tries (ms) (1000).
Turn on Retry On Fail. Now, if the supplier is busy, this step tries again by itself: three tries in total, one second apart.
- Wait longer between tries. A busy server needs more than a second. In Wait Between Tries (ms), type 5000: five seconds, the most this field allows. Leave Max. Tries at 3.
A busy server needs longer than a second. In Wait Between Tries, type five thousand. That is milliseconds, so five seconds, the most it allows. Only turn retries on for steps that are safe to repeat, never one that charges a card.
3. Catch the error and email it
- On Error. If all three tries fail, On Error decides what happens. It is set to Stop Workflow. Open it.
If all three tries fail, On Error decides what happens next. Right now it is Stop Workflow.
- Continue (using error output). Choose Continue (using error output): *Pass item to an extra
erroroutput*.Stop Workflow ends the run. Continue sends the error down the normal path, as if it were data. The step gets a second output, just for failures.
- Close the node. Close the node with the ×.
Close the node.
- Add to the Error output. The step now has two outputs: Success still goes to the price sheet, and Error is empty. Click the + on the Error output.
See the two outputs. Success still goes to the price sheet. Error goes nowhere yet.
- Find Gmail. Type gmail and choose Gmail.
Search for Gmail and choose it.
- Send a message. Click Send a message.
- To. In To, type rosa@maplelane-florist.example.
In the To field, type your email address again.
- Subject. In Subject, type Supplier prices did not update.
For the subject, type Supplier prices did not update.
- Message. In Message, paste The supplier price check failed this morning, even after 3 tries. Today's prices in the price sheet were not updated.
It tells you what this failure means for the shop: the prices are out of date.
- Close the node. Close the node with the ×.
Close the node. Now a failed price check emails you, and the run still finishes.
4. Check the run log and retry
- Executions. Click Executions in the switch at the top of the canvas.
What about this morning's prices? This is the run log: every run of this workflow.
- Retry the failed run. The newest run, this morning at 06:00, is open: Error, and Get supplier prices is marked red. Click the retry icon (↻) at the top right of the run.
The newest run opens by itself. Red means error, and the failed step is marked on the canvas. Green runs succeeded. The supplier is back up now, so click the retry icon at the top right.
- Retry with the saved workflow. Choose Retry with currently saved workflow (from node with error).
It starts again at the step that failed, with this morning's data. A new successful run shows up at the top of the list, and today's prices are in the sheet.
Screenshots




Frequently asked questions
- How do I see the logs in n8n?
- Click Executions at the top of the canvas. It lists every saved run, newest first, as Succeeded or Error with its run time. Open a run to see the failed step marked, and use the retry icon to run it again.
- Why didn't my n8n error workflow run?
- The most common reasons: the run was a manual test (error workflows only run for production runs), the failing workflow does not have the error workflow selected in Settings, or the failed step uses Continue or an Error output, so the run did not actually fail.
- How many retries should I set?
- Three tries is a sensible default. Max. Tries allows 2 to 5, and Wait Between Tries allows up to 5000 milliseconds. If a step still fails after five tries, something is really broken and you want the alert.
- Is this course really free?
- Yes. Stepthrough is completely free, and the practice copy needs no accounts. To build it for real you need your own n8n and Google accounts, and some of those cost money once you use them for real work.
More in n8n Automation Toolkit
n8n: What Is n8n? Build Your First WorkflowWhat n8n is and how it thinks, then your first workflow: a client inquiry form that catches every request and writes a one-line summary. No code, no accounts to connect.
Free · Live ~8 min Beginner
How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AIAI workflow automation for beginners: a form catches each client inquiry, an AI step sorts it and drafts the reply, and an If rule flags the urgent ones. Real n8n, free…
Free · Live ~12 min Beginner
n8n: Items, JSON and Expressions, Explained by DoingSee how n8n holds data: pin five fake invoices, read them as items, Table and JSON, then write one reminder per invoice and a late fee with drag-and-drop expressions.
Free · Live ~9 min Beginner
n8n: Run a Workflow on a Schedule (Every Monday at 8am)Use the n8n Schedule Trigger to run a workflow by itself: every Monday at 8am, a timesheet reminder. Set the interval, test it now, and check the time zone.
Free · Live ~6 min Beginner
n8n: Send Form Answers Straight to Google SheetsBuild a consultation request form in n8n (required fields, email, dropdown), test it, and add every answer as a new row in Google Sheets. No webhook, no form tool to…
Free · Live ~10 min Beginner
n8n: Summarize Customer Emails with OpenAIYour first AI step in n8n: send each customer email to OpenAI with one prompt and get a one-line summary plus the next step. No agent needed, about a cent of API use.
Free · Live ~9 min Beginner
All 28 modules in n8n Automation Toolkit
More n8n tutorials
How to Create an AI Agent in n8n That Saves Ideas to Google SheetsBuild an AI agent for BrightPath Marketing that generates social media post ideas and saves them to Google Sheets — chat trigger, AI Agent, system prompt, model…
Free · Live ~12 min Intermediate
How to Build in Lovable: A Web App with an n8n AI BackendBuild a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together.
Free · Live ~15 min Advanced
How to Do OCR in n8n: Read Receipt Photos into Google Sheets with AIDrop a photo of a receipt into an n8n chat. An AI agent reads it, pulls out the date, vendor and amount, picks a category, and adds a row to Google Sheets.
Free · Live ~12 min Intermediate
n8n AI Email Responder: Draft Gmail Replies AutomaticallyBuild an n8n agent that watches your Gmail, reads each new customer email, and writes a reply as a draft in the same thread, ready for you to check and send.
Free · Live ~12 min Intermediate
How to Make an n8n Workflow That Emails Each Tech Their Jobs from SheetsEvery morning at 7, n8n reads a plumbing company's jobs sheet, skips anything not assigned yet, and emails each job to the tech it's assigned to — customer, address…
Free · Live ~10 min Intermediate
Gmail AI Triage: Auto-Label Every Email and Draft RepliesBuild an n8n workflow that reads each new email, sorts it as a lead, a client or an invoice with a Text Classifier, adds the matching Gmail label, and drafts a reply to…
Free · Live ~18 min Advanced
From the blog
How to Hire an n8n Developer (and What to Scope First)How to hire an n8n developer for a paid project: what to write in the brief, questions to ask, red flags, and what you can build yourself first.
Oct 22, 2026 6 min read
How Do Automation Tools Handle Failures and Retries?How n8n, Zapier and Make handle failed steps: automatic retries, error routes, error alerts and replaying a failed run, with the exact setting names.
Oct 21, 2026 5 min read
Free cheat sheet
Print it or save the PDF: the key steps and checks from this lesson on one page, free.
n8n Intermediate Cheat Sheet: APIs, Webhooks, ErrorsA free one-page n8n intermediate cheat sheet: HTTP Request settings, GET vs POST, webhook URLs, expressions, items, AI approval and error handling.
Tool cheat sheet Free PDF
All free printable cheat sheets
Terms in this lesson
Plain-English definitions, each with an example from a free lesson.
Related prompts
- Automation project brief prompt: Copy this ChatGPT prompt to turn rough notes into a one-page brief for an n8n developer: trigger, apps, rules, test cases and…