Execute Workflow - Wait For Sub-Workflow: false - Sub-workflow aborts

Hello dear community/developers,

I have a problem with the “Execute Workflow” node. In the newer version, this has the option “Wait For Sub-Workflow Completion”. My expectations of this option: The sub-workflow is executed if the calling workflow does not wait for the response but continues to run, similar to a webhook with a respond node where subsequent nodes are also executed after the response to the caller. The problem is that the Execute Workflow with the “Wait For Sub-Workflow: false” option set starts the workflow, but the Sub-Workflow is immediately aborted. Is that how it should be?

Information on your n8n setup

  • n8n version: 1.57.0
  • Database (default: SQLite): Postgres v16
  • n8n EXECUTIONS_PROCESS setting (default: own, main): obsolete
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
1 Like

weird stuff. Seems to be working fine for me.
Can you try to execute this and see what happens:

Thx @BramKn for checking.

After many tests, I finally found the error:
If you use the settings for On Error = “Continue (using error output)” in the “Execute Workflow” node (also in v1.1), the sub-workflow is started and ended immediately. “Stop workflow” and ‘Continue’ do not lead to this problem.

1 Like

Sounds like a bug then. Will flag this topic for the n8n team to take a look.

2 Likes

Hi @BillAlex

I thought of something.
Can you Show a screenshot of the main and sub workflow when it has the issue?
Then I can verify my thought of what the issue is.

Hi @BramKn

no problem…

The Workflow:

Execution Log:

n8n v1.58.2 (Docker)
“Execution Workflow”-Node v1.1
“Execute Workflow Trigger”-Node v1.0

Outside of this topic:
I have found another error. When renaming a node, if you Tab to Cancel and then press Enter, the change is not canceled but applied.

Looks like it is working fine here.
I did notice you have the latest execute workflow inserted though. So maybe that is the issue.
Can you try with my flow (including the old execute workflow node)


for your other issue, please open a seperate topic.

I think your workflow went through because “waiting for sub-workflow” is not set to false in this workflow.

The error occurs for me in v1.0 and v1.1.

Ah I see, my bad.

It indeed does not run at all. I added an HTTP node to a webhook. Nothing happens.

However, the workaround via HTTP/Webhook still works well. I would also say better, as I can explicitly pass attributes to the workflow here, which unfortunately is still not possible with the “Execute Workflow”. You are forced to put a set node or similar in front of it.

However, I would then have to block subflows that are only to be used internally on the proxy from the outside. But IP whitelist is now also available in n8n.

that is ofcourse a choice. But the bug should still be figured out and fixed. :slight_smile:

1 Like

I agree with you :sunglasses:

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