Describe the problem/error/question
I have 4 workflows: A, B, C, and D.
- Workflow D: A sub-workflow containing a Telegram node in “Send and Wait for Response” mode.
- Workflow C: A parent workflow containing an AI agent that uses Workflow D as a tool (sub-workflow tool). Everything works correctly at this level — the agent calls the tool, waits for the Telegram response, receives it, and produces the expected output.
- Workflow A: The top-level parent workflow that calls Workflow C as a sub-workflow via an “Execute Sub-Workflow” node. This is where the error occurs: Workflow A stops and the “Execute Sub-Workflow” node throws the error:
workflowResult is not iterable.
What makes this particularly confusing:
Workflow A also contains another “Execute Sub-Workflow” node (calling Workflow B), which has a similar structure — an AI agent using the same Telegram sub-workflow tool (D). That node presented the same error initially, and I was able to fix it by:
- Wrapping the sub-workflow call inside a Loop node
- Changing the execution mode from “Execute once for each item” to “Execute once with all items”
I tried the same fix on Workflow C’s node in Workflow A, but it does not resolve the issue. “Wait for Sub-Workflow Completion” is enabled.
Note on the known bug:
IIt has been reported as fixed in n8n v2.0+. However, I am running v2.14 and the issue persists for me. This seems consistent with this similar report where the bug was still observed on v2.2.1, which suggests either a regression or an incomplete fix.
What is the error message (if any)?
workflowResult is not iterable
Thrown by the “Execute Sub-Workflow” node in Workflow A when calling Workflow C.
Share the output returned by the last node
- Workflow C executes fully and correctly on its own.
- Workflow A stops at the “Execute Sub-Workflow” node pointing to C, with the above error.
- The equivalent node (pointing to B, same structure) works after the Loop + “execute once with all items” workaround — but this fix does not work for C.
Information on your n8n setup
- n8n version: 2.14
- Database: SQLite
- n8n EXECUTIONS_PROCESS setting: main
- Running n8n via: Self-hosted
- Operating system: Linux