Retry on fail except for known error
Purpose This workflow snippet allows for advanced error catching during retry attempts. There are cases, where you want to check if an item exists first, so ...
🔌 Nodes & Integrations Used (1)
📖 Implementation & Setup Guide
Purpose
This workflow snippet allows for advanced error catching during retry attempts.
There are cases, where you want to check if an item exists first, so you can determine the following actions. Some API’s do not support an endpoint (e.g. Todoist: completed tasks) to do so, which is why you would work with the error branch, only that this does not work well in combination with the retry functionality.
How it works
- Instead of the builtin retry function of a Node a custom loop is used, to get more granular control in between the iterations
- If the main executed node fails, the error can be filtered for an expected error, which can trigger a separate action
- The retries only happen, if an unexpected error happened
- The workflow only stops, if the defined amount of retries exceeded
Setup
- Copy the nodes into your existing workflow
- Replace the “Replace me” placeholder with the Node you want to apply the retry logic on
- Follow the sticky notes for more instructions and optional settings
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Retry on fail except for known error.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related General Automation Workflows
View All in General Automation →Generate Application Copy
Production-ready n8n automation template for Generate Application Copy built by AhiXLight. Seamlessly connects Execute Workflow Trigger, OpenAI with 4 configured nodes.
2-way sync Google Contacts and Notion
Sync your Google Contacts with your Notion database. You can filter contacts by label or sync all contacts. All contact information is kept in sync between G...
2D Image to 3D Model Automation
Production-ready n8n automation template for 2D Image to 3D Model Automation built by AhiXLight. Seamlessly connects HTTP Request, Google Sheets, Google Drive with 17 configured nodes.
2 way sync assignments completion between Canvas LMS and Notion
Syncs assignments and completion states to and fro between Canvas LMS and a Notion database. Automatically triggers every 2 hours during the schoolday by def...