Skip to content
MoveWorkflows

Pipedream error handling → n8n Error Trigger and retries

Updated 2026-10-21 · 3 min read

Check your Pipedream export
Drop your Pipedream export hereProject export ZIP, GitHub Sync repo (ZIP or folder) or workflow JSON / YAMLRead in your browser. Files are never uploaded.
In short
  • n8n sends no alerts on failures until you set up an error workflow with Error Trigger.
  • Pipedream auto-retry becomes Retry On Fail, set on each node that calls a flaky API.
  • Self-hosted n8n prunes executions after 14 days or past 10,000 executions by default.
On this page · 8 sections
  1. What to do now
  2. Mapping
  3. Step 1. Build one error workflow
  4. Step 2. Attach it to every migrated workflow
  5. Step 3. Set retries where Pipedream retried
  6. Step 4. Decide what continues on error
  7. Executions and retention
  8. Next steps

In n8n, the Error Trigger node replaces the Pipedream error emails and $error workflows you relied on. Pipedream emailed you about unhandled errors by default. On the Advanced plan it could also retry steps automatically (errors, settings).

n8n sends nothing until you set up an error workflow: a separate workflow that runs when another one fails. Do this before you switch traffic, or failures will go unnoticed.

What to do now

  1. Build one error workflow that starts with the Error Trigger and sends you a message. Step 1 below shows how.
  2. Select it in every migrated workflow. One error workflow can serve all of them.
  3. Turn on Retry On Fail on the nodes that call flaky APIs, where Pipedream used to retry.
  4. Decide which nodes may fail without stopping the run. The On Error setting controls this.

Mapping

Pipedream n8n
Error email on unhandled errors (max one per error, per workflow, per 24 h) Error workflow: Error Trigger → Send Email / Slack node
Global error workflow from the Workspace $error events source One error workflow, selected in the settings of many workflows
Auto-retry (Advanced plan: up to 8 retries over 10 hours) Retry On Fail per node (tries and wait time)
$.flow.rerun in a catch block Retry On Fail, or a Wait node and a loop
try/catch that lets the workflow go on Node setting On Error: Continue, or Continue (using error output)
throw new Error() Stop and Error node, or throw in a Code node
Event inspector history Executions tab (keep failed executions on in Workflow Settings)

Step 1. Build one error workflow

  1. Create a workflow that starts with an Error Trigger node.
  2. Add a Slack, Send Email or HTTP Request node that sends the details. The trigger provides execution.id, execution.url, execution.error, execution.lastNodeExecuted and workflow.name.
  3. Save it. It doesn't need to be published. You can't test it by running other workflows manually (Error Trigger docs).

Two details about the data:

  • execution.id and execution.url exist only if the execution was saved.
  • When the trigger node itself fails, the data has a trigger object instead of execution.

A message template:

{{ $json.workflow.name }} failed at {{ $json.execution.lastNodeExecuted }}
{{ $json.execution.error.message }}
{{ $json.execution.url }}

Step 2. Attach it to every migrated workflow

Open each workflow → Workflow Settings → Error workflow → select the one you built.

Step 3. Set retries where Pipedream retried

In Pipedream, auto-retry was a workflow setting. It retried the failed step and continued from there. In n8n you set Retry On Fail on the nodes that call flaky APIs (node settings). Usually these are HTTP Request and app nodes.

Don't retry nodes whose side effects must not happen twice, such as charging a card or sending an email. The exception: the API supports idempotency keys, an ID that lets it recognize a repeated request.

Step 4. Decide what continues on error

The node setting On Error has three options:

  • Stop Workflow, the default;
  • Continue;
  • Continue (using error output). This gives the node a second output for failed items. It is the visual version of a try/catch around one call.

Executions and retention

Failed executions replace Pipedream's event inspector. On self-hosted n8n, executions are pruned by default after 336 hours (14 days) or past 10,000 executions (execution data). On n8n Cloud, how long they are kept depends on the plan.

Next steps

Not affiliated with Pipedream or n8n.

FAQ

What replaces Pipedream's error emails in n8n?

Create an error workflow that starts with the Error Trigger node and add a notification (email, Slack). Then select it under Workflow Settings → Error workflow in each workflow.

Does the n8n error workflow need to be published?

No. n8n says a workflow that uses the Error Trigger doesn't have to be published. You can't test it by running workflows manually.

What replaces Pipedream auto-retry in n8n?

The Retry On Fail setting on each node, with a number of tries and a wait between them.

How do I fail a workflow on purpose in n8n?

Use the Stop and Error node with an error message or an error object. It fails the execution and passes the details to the error workflow.