← All N8N workflows
Automation & utilitiesIfManual TriggerNo OpEdit FieldsStop And Error

Retry on fail except for known error Template

Configured with Stop And Error, Wait. Review the connections and setup before adapting this template.

Workflow preview
RoutingRetry limit reachedStop And ErrorTransformSet triesEdit FieldsTransformUpdate triesEdit FieldsWaitWaitWaitRoutingCatch known errorIfRoutingReplace MeNo OpRoutingSuccessNo OpRoutingKnown ErrorNo OpTriggerManual TriggerManual TriggerRoutingIf tries leftIf

Node categories in this workflow

  • Routing
  • Transform
  • Wait
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Retry limit reachedRoutingStop And ErrorSee node parameters
Set triesTransformEdit FieldsSee node parameters
Update triesTransformEdit FieldsSee node parameters
WaitWaitWaitSee node parameters
Catch known errorRoutingIfSee node parameters
Replace MeRoutingNo OpSee node parameters
SuccessRoutingNo OpSee node parameters
Known ErrorRoutingNo OpSee node parameters
Manual TriggerTriggerManual TriggerSee node parameters
If tries leftRoutingIfSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Set filter

Set filter

Filter by status code or error message.

Replace Node

Replace Node

Replace this by the Node which retrieves the admired data. Enable error branch in Node Settings and connect the outputs like in this example

Set max tries

Set max tries

Change if needed, default is 3

Set Wait

Set Wait

Change duration if needed, default is 5s

Sticky Note4

Continue here, if the request succeeded

Sticky Note5

Continue here, if the request failed

Sticky Note6

Stop here, if all tries have failed

Sticky Note7

Define counter for tries

Sticky Note8

Update counter for tries

Retry on fail except for known error Template

Retry on fail except for known error Template

Purpose and structure

This folder contains the Retry on fail except for known error Template workflow. Its executable nodes use if, manualTrigger, noOp, set, stopAndError, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Manual Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Stopanderror/1963_Stopanderror_Wait_Automation_Triggered.json MIT; preserve source notices.

More in Automation & utilities