Cannot read properties of undefined (reading 'disabled')

Describe the problem/error/question

I am having an issue with workflow that previously worked but I have not used it for a while so I do not have the exact version that it got broken. I have a workflow that processes a csv file that is sent through Telegram.

What is the error message (if any)?

Error reads
Cannot read properties of undefined (reading 'disabled')

Stack trace

TypeError: Cannot read properties of undefined (reading 'disabled') at WorkflowExecute.checkReadyForExecution (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:557:22) at WorkflowExecute.processRunExecutionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:708:37) at startExecution (/usr/local/lib/node_modules/n8n/dist/workflow-execute-additional-data.js:173:43) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.executeWorkflow (/usr/local/lib/node_modules/n8n/dist/workflow-execute-additional-data.js:138:12) at ExecuteContext.executeWorkflow (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/base-execute-context.js:58:24) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js:336:41) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:633:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:882:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1216:20

I tried updating the Execute workflow node from 1.1 to the latest 1.2 but I am getting still the same error.

Please share your workflow

The target workflow has a failed execution but even the “Execute Workflow Trigger” does not have any data.

Interestingly the data go from a main telegram workflow to a subworkflow and only when it is supposed to go to the next subworkflow - it fails.

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.77.3 (Self Hosted)
  • Database (default: SQLite): PG
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Unraid

So I actually did find something out! I wanted to process the csv manually, without my TG bot, but it was failing with the same error when I tried to “Test workflow”.

I noticed that the Sum node was behaving somewhat odd. The csv file has a “Booking ref.” column that it did not really like (the dots again :smiley: …). But I worked around that and counted a different column initially. But when I updated that node from 1 to 1.1, I can suddenly “Test Workflow”.

I created a new workflow and started anonymizing it to share it, but that one works even with the old Sum node. I am confused now… I mean my workflow is working so I am happy, but I have nothing to proof that there was an error in the first place. Should I consider it “fixed”?

I just had something very similar happen…

Test execution failed to start with the same error you were getting.

Ctrl + A to select all nodes
Ctrl + C to copy
Del to delete all nodes
Ctrl + V to paste them back again
Save Workflow
Test

… and it works again.

Very bizzare!

18 Likes

I am experiencing it again. When my workflow with a file fails, I then fix it and when I want to rerun it, it fails with the error “Cannot read properties of undefined (reading ‘disabled’)”. Sending the file again is the only option.

Attaching stack trace as I missed that last time

TypeError: Cannot read properties of undefined (reading 'disabled') at WorkflowExecute.checkReadyForExecution (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:584:22) at WorkflowExecute.processRunExecutionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:737:37) at startExecution (/usr/local/lib/node_modules/n8n/dist/workflow-execute-additional-data.js:172:43) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.executeWorkflow (/usr/local/lib/node_modules/n8n/dist/workflow-execute-additional-data.js:137:12) at ExecuteContext.executeWorkflow (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/base-execute-context.js:58:24) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/ExecuteWorkflow/ExecuteWorkflow/ExecuteWorkflow.node.js:349:41) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:660:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:891:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1224:20

I am now on 1.81.4 self hosted.

Edit: I see that I actually attached the stack trace previously. n8n container log also just says the main error.

I noticed that when I click on “Debug in Editor” button it takes the failed execution into the editor - no surprises here. Everything is there, from the input data all the way to the failed node. But when I hit “Test workflow” it fails as expected but also the input Binary data are gone from the pinned first node. Can that be it?

EDIT: The issue is not in the binary. I converted the binary to base64 at the very beginning and the third workflow still does not start.

Well after a lot of testing a made it working. The workflow was not running at all. I tried duplication and copy paste but nothing. Then I started deleting nodes and there I found that n8n did not like the Extract from File node being the second node in the workflow. So I tried this…


And that “fixed” it. Disabling the node was also enough to make it work.

During the testing I also raised log level and I was getting this line

Failed to restore binary data ID - No such file or dir
2 Likes

this worked for me! thanks!!

it worked for me man!!!
can not believe it , I just deleted some parts of my workflow and after that I saw that error and with your trick it works again

whoaaaaa

For future reference – this happens occasionally when duplicating a workflow. Seems to be some type of weird corruption. As others have pointed out, duplicating the nodes and/or duplicating the workflow again can sometimes help.

Searched all over the web for solution and tried many but this worked like a charm.
Thank you..

Same thing here, this is the first time I’ve found this behavior while testing, sadly not the first time deleting and recreating fixes some inexplicable error

Love You, simple but fix the problem

Thank you :folded_hands:

It really works! Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.