Skip to content

Exporting a workflow that calls a subworkflow results in "workflowId":"${undefined}" #17036

Description

@mig82

Describe the problem/error/question

I use the N8N API to export workflows from one N8N instance and then import them into another.
I recently started using the "Execute sub-workflow" node and noticed that this results in the executeWorkflow node having the workflowId property set to what looks like an expression that resulted in null —i.e. "workflowId": "${undefined}"

What is the error message (if any)?

There's no error message.

Please share your workflow/screenshots/recording

Here's what I'm getting:

{
	"parameters": {
		"workflowId": "${undefined}",
		"workflowInputs": {
			"mappingMode": "defineBelow",
			"value": {},
			"matchingColumns": [],
			"schema": [],
			"attemptToConvertTypes": false,
			"convertFieldsToString": true
		},
		"options": {}
	},
	"type": "n8n-nodes-base.executeWorkflow",
	"typeVersion": 1.2,
	"position": [
		-100,
		4440
	],
	"id": "18f9c1ec-8ac3-4350-897f-c143d2945595",
	"name": "callMyOtherWorkflow"
}

Here's what I'd expect:

{
	"parameters": {
		"workflowId": {
			"__rl": true,
			"mode": "list",
			"value": "MX0GSNtBco17QSEb",
			"cachedResultName": "myOtherWorkflow"
		},
		"workflowInputs": {
			"mappingMode": "defineBelow",
			"value": {},
			"matchingColumns": [],
			"schema": [],
			"attemptToConvertTypes": false,
			"convertFieldsToString": true
		},
		"options": {}
	},
	"type": "n8n-nodes-base.executeWorkflow",
	"typeVersion": 1.2,
	"position": [-100, 4440],
	"id": "18f9c1ec-8ac3-4350-897f-c143d2945595",
	"name": "validateToken"
}

Share the output returned by the last node

N/A

Debug info

core

  • n8nVersion: 1.92.2
  • platform: npm
  • nodeJsVersion: 18.20.7
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: community

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 50 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10.15; rv:139.0) gecko/20100101 firefox/139.0
  • isTouchDevice: false

Generated at: 2025-07-06T18:20:24.890Z}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions