// guides · n8n error index

n8n Execute Workflow node not working? 71 sub-workflow tests

Why an n8n sub-workflow call fails or returns the wrong data: unpublished child (works in the editor, fails in production), wrong ID, input data mode, type checks, caller policy, branches and Wait For Sub-Workflow Completion, plus child errors, lost input data and binary files, from 71 real runs on n8n 2.43.7.

Updated 2026-10-23 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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.

  2. Check the workflow ID

    The ID is the part after /workflow/ in the child's URL. A wrong ID gave Workflow does not exist. from the editor, but in production it gave the same Workflow 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).

  3. 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.

  4. 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) }}).

  5. 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 with Referenced 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.

  6. 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.

TestWhat the parent gotNext node ran?
Child published, trigger set to Accept all data, Run once with all items2 items with the child's new field; the child saw 2 items in one runYes
Same, mode Run once for each item2 items; the child ran twice and saw 1 item each timeYes
Child not published, production runError: Workflow is not active and cannot be executed.No
Same unpublished child, manual run from the editor2 items, workedYes
Child published, then changed and saved but not republished, production runversion: "published v1": the old version ranYes
Same, manual run from the editorversion: "draft v2": the unpublished change ranYes
Workflow ID that doesn't exist, production runError: Workflow is not active and cannot be executed.No
Same wrong ID, manual runError: Workflow does not exist.No
Child trigger Define using fields below (name: String, qty: Number), nothing mapped in the parentChild saw only name and qty; extra was droppedYes
Same, only name mapped in the parentChild still got qty: incoming fields with the same name fill unmapped inputsYes
Child trigger Define using JSON example {"name":"a","qty":1}Same as fields below: name and qty onlyYes
qty mapped as {{ $json.qty + ' pcs' }} to a Number inputError: 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 offError: 'qty' expects a number but we got '1'No
Same, Attempt to convert types onqty arrived as the number 1Yes
Child ends with IF, then a node on each branch1 item (Bob, true branch only); Ann's false-branch item was not returnedYes, with 1 item
Same IF child, both branches into a Merge (Append) and the Code snippet below1 summary item: count: 2, names: [Bob, Ann]Yes
Child ends with a Filter that drops every item0 items, no errorNo
Child stops with a Stop and Error nodeThe parent failed with the child's error messageNo
Child has a 3 s Wait, Wait For Sub-Workflow Completion on (default)The child's output; run took 6.2 sYes
Same, Wait For Sub-Workflow Completion offThe parent's own 2 input items back, unchanged; run took 3.2 sYes, before the child finished
Child setting This workflow can be called by: No workflowsError: The sub-workflow (swChildNone00001) cannot be called by this workflowNo
Allowlist (Selected workflows) without the parent's ID / with itSame error / workedNo / Yes
Source Define Below (child JSON pasted into the node)2 items, worked with no published childYes
Child that starts with a Manual Trigger instead of When Executed by Another WorkflowRan and returned 2 items in our runYes

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.

TestWhat the parent got
All 22 calls with the children unpublishedEvery one failed with Workflow is not active and cannot be executed.; with On Error = Continue the item became {error: ...}
Workflow field left emptyRefused to start: Parameter "Workflow" is required.
Workflow ID set by an expression, {{ $json.wf }}Worked
Code node in the child throwsParent failed with boom in sub [line 1]
Same, On Error = Continue, 3 items, Run once with all itemsOne item holding the error; the next node ran
Child ends with an Edit Fields node that keeps one fieldOnly that field; everything else the child had was gone
Child whose last node returns 0 items0 items, success, no warning; the next node did not run
Child whose last node is an IF with nothing connected after itBoth 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 parentOnly the declared fields arrived, and age stayed the text "20": no type check and no conversion
Child Code node uses $('Items') from the parentReferenced node doesn't exist
Parent item with a binary file, child set to Accept all dataThe file reached the child under the same key, data
Child with only a Manual TriggerThe child ran and returned its own data, but did not receive the parent's items

Error messages we got

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

What we didn't test

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.