Error and success for subworkflow execution node bug

Describe the problem/error/question

Hello, I am receiving simultaneous output from the sub-workflow for success and failure at the same time. How is this possible and how can it be fixed?

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Version 2.2.5
  • Database (default: SQLite): sqlite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): not sure, probably default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker, hostinger
  • Operating system: server ubuntu, I’m on mac os

Hi @JSA i think substituting a ‘Wait’ node on your sub-workflow with a Code node that might implements a delay, this can prevent a n8n bug that throws when a sub-workflow waits, it returns both success and error, let me know if this helps.

1 Like

There is no wait node in my wf. Not sure what do you mean

Ah i see @JSA just ensure the sub-workflow only ever reaches an end once, and prevent it from completing normally and throwing an error. Either catch or convert errors inside the sub-workflow, so the Execute Workflow node returns one clear result.

1 Like

My sub workflow have one single path. So there is another thing/ I search the web and it’s looks like because node have on the same time on “always Output data” and “continue on error with error output”, it’s caused double path.

2 Likes

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