Catch errors in workflow

How do I catch errors in my workflow instead of just letting it fail

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

There are two ways

  1. Use the error workflow feature, it automatically runs another workflow when something fails
  2. Or add an error trigger node inside your workflow to handle things like logging, retries or alerts
2 Likes

in the setting tab of each node there is On Error field. The default value of the field is Stop Workflow but you can also choose Continue or Continue (using error output)

so you can continue on error and handle the error inside your workflow

Didn’t know, it’s eye opening