Hey, I see the input, and it shows binary file, but when executing the extract, it fail with the error: The item has no binary field ‘dataDoc’ [item 0]
I’m merging two inputs, but I should have only 1 binary file available.
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hey @Roni_2025,
It’s failing with item 0. That means the first item.
I can see two items arrive from your Switch node. So the first item doesn’t have that field.
You can apply a filter before processing the file, to make sure only items that have that field actually get to the last node.
If my reply answers your question, please remember to mark it as a solution.
Thanks @solomon - Not sure I follow, where can I add the filter? I need the 2 merge items because json data is used for the switch and the binary for the extract. anyway I can direct the extract to look at the correct input?
Put a filter right after the switch node, at the end of the flow.
Before the node that is giving you an error.
Filter out the items that don’t have that dataDoc field
Like this:
.
Or maybe like this, depending on your needs:
.
If my reply answers your question, please remember to mark it as a solution.
The filter can’t access dataDoc. It sees that there is a binary object (when typing it shows green), but nothing else (after dot, it shows red).
{{ $input.item.binary.dataDoc }} is not working.
What do you see if you erase until “binary” and then type the dot again?
It should open the available fields for you to choose.
In my case it’s data0
. For you it should show the dataDoc field.
I don’t see anything after.
That’s weird. Can you please update your n8n version and see if this gets fixed?