Steps
Publish the sub-workflow
A manual run from the editor calls the sub-workflow's saved draft. Every other run (trigger, schedule, webhook, our CLI runs) calls its published version. An unpublished child worked from the editor and failed in production with
Workflow is not active and cannot be executed.Open the child and click Publish, and publish again after every change.Check the workflow ID
The ID is the part after
/workflow/in the child's URL. A wrong ID gaveWorkflow does not exist.from the editor, but in production it gave the sameWorkflow is not active and cannot be executed.as an unpublished child. After an import or a move to another instance the ID changes, so pick the workflow again in the Workflow field (From list).Pick the right Input data mode
On the When Executed by Another Workflow trigger: Accept all data passes every field through. Define using fields below or Define using JSON example keep only the declared fields: in our run an extra field was silently dropped, and the values had to match the declared type.
Fix type errors in the mapping
A text value for a Number input failed with
Invalid input for 'qty' [item 0]/'qty' expects a number but we got '1'. Turn on Attempt to convert types in the Execute Workflow node's Workflow Inputs, or send a real number ({{ Number($json.qty) }}).Errors and data inside the child
When a node in the child fails, the parent fails with the child's own message, for example
boom in sub [line 1], without the child node's name, so open the child's executions to find it. With On Error set to Continue on the Execute Workflow node, the parent got one item holding that error for all 3 inputs (Run once with all items) and carried on. The child can't read the parent's nodes:$('Items')in a child Code node failed withReferenced node doesn't exist, so pass what it needs as input. Binary files did reach the child with Accept all data. A child that starts with a Manual Trigger instead of When Executed by Another Workflow still ran, but got none of the parent's items, with no error.Make the last node return what you need
The parent gets the output of the last node that ran in the child. With an IF split, only one branch came back (the other item was lost); with a Filter that dropped everything, the parent got 0 items and its next node did not run. End the child with a Merge, or a single Edit Fields node, that both branches feed.
What we ran
On 23 October 2026 we imported 13 child workflows and 24 parent workflows into a fresh n8n 2.43.7 install and ran each parent (Manual Trigger, a Code node making two items {name: 'Ann', qty: 1, extra: 'x'} and {name: 'Bob', qty: 3, extra: 'y'}, an Execute Workflow node v1.3, then an Edit Fields node called After). We ran 23 of them with n8n execute, which counts as a production run, and 3 as manual runs through the editor's API to compare draft and published behaviour.
| Test | What the parent got | Next node ran? |
|---|---|---|
| Child published, trigger set to Accept all data, Run once with all items | 2 items with the child's new field; the child saw 2 items in one run | Yes |
| Same, mode Run once for each item | 2 items; the child ran twice and saw 1 item each time | Yes |
| Child not published, production run | Error: Workflow is not active and cannot be executed. | No |
| Same unpublished child, manual run from the editor | 2 items, worked | Yes |
| Child published, then changed and saved but not republished, production run | version: "published v1": the old version ran | Yes |
| Same, manual run from the editor | version: "draft v2": the unpublished change ran | Yes |
| Workflow ID that doesn't exist, production run | Error: Workflow is not active and cannot be executed. | No |
| Same wrong ID, manual run | Error: Workflow does not exist. | No |
| Child trigger Define using fields below (name: String, qty: Number), nothing mapped in the parent | Child saw only name and qty; extra was dropped | Yes |
Same, only name mapped in the parent | Child still got qty: incoming fields with the same name fill unmapped inputs | Yes |
Child trigger Define using JSON example {"name":"a","qty":1} | Same as fields below: name and qty only | Yes |
qty mapped as {{ $json.qty + ' pcs' }} to a Number input | Error: Invalid input for 'qty' [item 0], 'qty' expects a number but we got '1 pcs' | No |
qty mapped as text '1', Attempt to convert types off | Error: 'qty' expects a number but we got '1' | No |
| Same, Attempt to convert types on | qty arrived as the number 1 | Yes |
| Child ends with IF, then a node on each branch | 1 item (Bob, true branch only); Ann's false-branch item was not returned | Yes, with 1 item |
| Same IF child, both branches into a Merge (Append) and the Code snippet below | 1 summary item: count: 2, names: [Bob, Ann] | Yes |
| Child ends with a Filter that drops every item | 0 items, no error | No |
| Child stops with a Stop and Error node | The parent failed with the child's error message | No |
| Child has a 3 s Wait, Wait For Sub-Workflow Completion on (default) | The child's output; run took 6.2 s | Yes |
| Same, Wait For Sub-Workflow Completion off | The parent's own 2 input items back, unchanged; run took 3.2 s | Yes, before the child finished |
| Child setting This workflow can be called by: No workflows | Error: The sub-workflow (swChildNone00001) cannot be called by this workflow | No |
| Allowlist (Selected workflows) without the parent's ID / with it | Same error / worked | No / Yes |
| Source Define Below (child JSON pasted into the node) | 2 items, worked with no published child | Yes |
| Child that starts with a Manual Trigger instead of When Executed by Another Workflow | Ran and returned 2 items in our run | Yes |
Second round: 45 more runs
On 24 October 2026 we built 10 new children and 23 parents on n8n 2.43.7 (Execute Workflow v1.3, v1.2 once) and ran each parent with n8n execute, first with every child unpublished, then published.
| Test | What the parent got |
|---|---|
| All 22 calls with the children unpublished | Every one failed with Workflow is not active and cannot be executed.; with On Error = Continue the item became {error: ...} |
| Workflow field left empty | Refused to start: Parameter "Workflow" is required. |
Workflow ID set by an expression, {{ $json.wf }} | Worked |
| Code node in the child throws | Parent failed with boom in sub [line 1] |
| Same, On Error = Continue, 3 items, Run once with all items | One item holding the error; the next node ran |
| Child ends with an Edit Fields node that keeps one field | Only that field; everything else the child had was gone |
| Child whose last node returns 0 items | 0 items, success, no warning; the next node did not run |
| Child whose last node is an IF with nothing connected after it | Both IF outputs came back separately (true: 0 items, false: 3 items), and the parent's next node, fed by the first output, did not run. End the child with one node both branches feed |
Number input, parent maps the text "20" | Invalid input for 'age' [item 0], 'age' expects a number but we got '20'; with Attempt to convert types on it arrived as 20 |
| Declared inputs (fields below or JSON example), nothing mapped in the parent | Only the declared fields arrived, and age stayed the text "20": no type check and no conversion |
Child Code node uses $('Items') from the parent | Referenced node doesn't exist |
| Parent item with a binary file, child set to Accept all data | The file reached the child under the same key, data |
| Child with only a Manual Trigger | The child ran and returned its own data, but did not receive the parent's items |
Error messages we got
Workflow is not active and cannot be executed.: production run of an unpublished child, or a wrong ID. Publish the child and check the ID.Parameter "Workflow" is required.: the Workflow field of the Execute Workflow node is empty. Pick the child From list or set its ID.Referenced node doesn't existinside a child: the child tried to read a parent node with$('Node name'). Send that data as input instead.Workflow does not exist.: the ID is wrong (seen on a manual run). Re-select the workflow From list.Invalid input for 'qty' [item 0]with'qty' expects a number but we got '1 pcs': a mapped value doesn't match the input type declared on the child's trigger.The sub-workflow (swChildNone00001) cannot be called by this workflowwithThe sub-workflow you’re trying to execute limits which workflows it can be called by.: change the child's Settings, This workflow can be called by, or add the parent's ID to the allowlist.
Snippets
// Child: return one summary item no matter which branch ran
// (Code node at the end, fed by both branches through a Merge set to Append; tested)
const all = $input.all();
return [{ json: { ok: true, count: all.length, names: all.map(i => i.json.name) } }];
// Parent: send numbers as numbers to a Number input
{{ Number($json.qty) }}
// Parent: after a call with Wait For Sub-Workflow Completion off,
// the node outputs its own input. Read the child's result elsewhere
// (database, Data Table, webhook back to the parent).
Good to know
- Using a sub-workflow to avoid
Node ran out of memory? Return only a few fields from it: see n8n out of memory errors. - Tagging runs with an order or customer id so you can find them later? See n8n Execution Data node not saving.
- Errors in a sub-workflow and no alert? Check the error workflow setup: n8n error workflow not triggering.
- Sharing data between workflows through a Data Table? Get runs once per incoming item and returns copies: see n8n Data Table node not working.
- Run once for each item shows a deprecation notice in n8n 2.43.7: n8n suggests a Loop Over Items node before Execute Workflow instead. See n8n Loop Over Items not working.
- A child that returns 0 items stops the parent silently, the same way as any empty node: n8n next node not running. Expressions inside the mapping that come out empty: n8n expression errors.
- A shared child is a good place for one-off logic such as tracking OpenAI cost per call or a shared error workflow.
- Every error text from our n8n guides is in the n8n error message index.
What we didn't test
- Clicking through the editor UI itself (our manual runs went through the same API the editor uses), n8n Cloud, queue mode with workers, and node version 1.4.
- Sub-workflows in other projects (we used one owner, so the default caller policy, same project, always passed), and the Call n8n Workflow tool used by AI Agent nodes.
Start from a working agent
FAQ
Why does my n8n sub-workflow work in the editor but not in production?
A manual run from the editor calls the child's saved draft; a trigger, schedule or webhook run calls its published version. In our test an unpublished child worked manually and failed in production with 'Workflow is not active and cannot be executed.' Publish the child, and republish after every change.
What does 'Workflow does not exist' mean in n8n?
The Execute Workflow node points to an ID that isn't on this instance, often after an import or copying a workflow between instances. Open the node and pick the workflow again from the list. In production the same wrong ID showed 'Workflow is not active and cannot be executed.' instead.
How do I pass data to an n8n sub-workflow?
Set the When Executed by Another Workflow trigger to Accept all data to receive every field, or declare inputs (fields below or a JSON example) and map them in the Execute Workflow node. Declared inputs keep only those fields and check their types.
How do I return data from an n8n sub-workflow?
The parent receives the output of the last node that ran in the child. If the child branches, merge the branches into one final node, otherwise only one branch comes back. Keep Wait For Sub-Workflow Completion on: with it off, the parent just gets its own input items back.
Run once with all items or Run once for each item?
With all items, the child ran once and saw both items. With each item, it ran twice with one item each, which is slower and is marked deprecated in n8n 2.43.7. Use a Loop Over Items node before the call if you need one run per item.
Why does my n8n sub-workflow fail with no node name in the error?
The parent shows only the child's error text, such as 'boom in sub [line 1]'. Open the child workflow's executions list to see which node failed. Set On Error to Continue on the Execute Workflow node if the parent should carry on.
Related guides
- n8n expression errors and empty values: 29 tests, every message explained
- n8n next node not running? Empty output and Always Output Data, 18 tests
- n8n error workflow not triggering? 17 tests of the Error Trigger
- n8n Basic LLM Chain not working? 25 tests, every error decoded
- n8n Merge node not working after an IF? 31 tests of what really happens
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes