Binary data output not accessable from another node

Describe the problem/error/question

I have “read file from disk” → “set ID” → “Switch” → “Extract from File”
If I try to access the data when Extract from file directlly connected, it is working.
When I’m adding nodes in between, it is not.

Error: This operation expects the node’s input data to contain a binary file ‘data’, but none was found [item 0]

I also tried calling the data with: {{ $(‘Read/Write Files from Disk’).item.binary.data }}
and {{ $node[“Read/Write Files from Disk”].binary.data }}.
and it still provide error : This operation expects the node’s input data to contain a binary file ‘[object Object]’, but none was found [item 0]

I know it is very basic, what am I missing??

Please share your workflow

Information on your n8n setup

  • n8n version:
  • Local n8n, latest.
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

Not sure if this matches your requirements:

But as I understand, the requirement is that, binary should exist as the previous node’s output. You can also check out this post for more alternatives: [onedrive via Graph HTTP] why binary don't upload if not exactly previous node? - #2 by ihortom

1 Like

I’m not sure I fully understand why the data is not pssing, but thanks! the example helped!. this is what i did:

Your original workflow would work if you enabled ‘include other input fields’ on your Edit Fields node. Then the binary data would be passed through each node of the workflow, and be present in the direct input of the Extract from File node.

3 Likes

WOW - This is great!!! thank you so much. It is working!!

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