Describe the issue/error/question
When I execute the flow everything goes fine until at some point it executes a random node, in this case the one named: Create JSON-items2. There is no conditions in the flow to execute that node.
What is the error message (if any)?
TypeError: Cannot read properties of undefined (reading 'map')
at /Applications/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function:1:124
at /Applications/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function:6:2
at BaseHandler.apply (/Applications/n8n.app/Contents/Resources/app/node_modules/vm2/lib/bridge.js:479:11)
at NodeVM.run (/Applications/n8n.app/Contents/Resources/app/node_modules/vm2/lib/nodevm.js:425:23)
at Object.execute (/Applications/n8n.app/Contents/Resources/app/node_modules/n8n-nodes-base/dist/nodes/Function/Function.node.js:96:31)
at Workflow.runNode (/Applications/n8n.app/Contents/Resources/app/node_modules/n8n-workflow/dist/src/Workflow.js:594:51)
at /Applications/n8n.app/Contents/Resources/app/node_modules/n8n-core/dist/src/WorkflowExecute.js:537:64
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Please share the workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.6.0.
- Database you’re using (default: SQLite):
- Running n8n with the execution process [own(default), main]:
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: Mac Desktop App