Throwing an error with Stop & Error using an error workflow

I have an Error Workflow defined in my workflow’s settings, but there are some run conditions where I want to manually trigger an error. How can I use the “Stop and Error” node to generate the error message and then pass that to my Error Workflow?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Maybe this should be turned into a feature request. I had the same expectation that if you intentionally hit a Stop and Error node, and you have an Error Workflow set for the workflow, the specified error workflow should be executed when/if you reach a Stop and Error node. Currently, it appears that is not what happens.

1 Like

Until the behavior is changed (if it ever is), you probably have to sorta “repeat yourself” and put an Execute Workflow node to explicitly call the error workflow, right ahead of your Stop and Error node.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.