Branch to error output without continuing? Or a stop without error node?

Describe the problem/error/question

Hello! I’ve been using the “Continue (using error output)” option on nodes but just recently realized that if I don’t put a stop and error node on the error output it will keep executing my flow with broken data. I want to avoid this. My initial thinking was the feature branched to a new error path and stopped the normal path so I can handle each error individually without it messing up the rest of my flow. Is there anyway to do this? Ideally this is fixed with a stop node but there’s only stop and error which causes my error workflow to run which I don’t want in specific error cases (ie I want to stop the flow without error but it continues instead).

What is the error message (if any)?

N/A

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

Hi @a200a200

There’s a “Do Nothing” node. You could use that node if the http request has an error. Add it to the error path. Is that what you are looking for?

No because (at least from how I understand it) - the workflow continues running with empty data in the “success” branch and then sends the error down the error branch (so a do nothing node will not stop execution of the “success” branch). I’m looking for a way for nothing to come out of the success branch or a way to stop the workflow without a Stop and Error node (since this would cause my error workflow to run) on the error branch thereby stopping the success branch.

1 Like

Hi @a200a200

Here’s how the error in workflow works. If there is an error in that step, it sends it down the error path. If there is no error, it sends it down the success path. It doesn’t send empty data down the success path. It’s binary, one or the other.

Do you have some sample data where you are seeing the issue?

This doesn’t seem to be the case. In the latest update when setting “Continue (using error output)” the node UI even says it will continue in case of fail.

I do not want execution to continue on the success branch (which it indeed does). See a below screenshot of an example run I did - notice the HTTP Request Node errored but the If node connected to it was still run (with empty data causing it to break).

Maybe this is a bug? Here was the error from the HTTP Node

Then the If node ran and received nothing (causing an error)

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