Problem with binary data

Describe the problem/error/question

I have a problem with uploading data (file) to the Gemini API. Every time I get an error: "This operation expects the node’s input data to contain a binary file ‘output_data’, but none was found [item 0] "
I tried different approaches and nodes unfortunately, it always fails with this error.
Below is my docker-compose file:
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=168
- EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem

Please advise what is wrong and I can’t access the upload file. Thank you!

What is the error message (if any)?

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

Please share your workflow

Share the output returned by the last node

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

Information on your n8n setup

  • **n8n version:1.94.1
  • **Database (default: SQLite):SQLLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):docker on Oracle Cloud
  • **Operating system:Ubuntu
1 Like

Hi @Mefior

When calling in your last node, it needs access to the binary node,

You can probably add a merge node from extract from file, to the last http request so it has access to the binary.

Hope this helps,

Samuel

2 Likes

Thank you very much! @King_Samuel_David The merge node helped. Could you explain to me why I need 3 nodes to pass on the binary from the upload or webhook node? It seems reduntant to similar workflow in Make. Thank you v much in advance.

1 Like

@Mefior Your welcome, and I would say, n8n gives you much more customisation, things you simply cannot do in make. Iwas using make liked it, but the excessiving pricing model I didn’t like.

Asa computer science grad and being in IT for near 15+ years now, only 31,Ilearn towards n8n because I can achieve almost anything, unlike my experience with make.

So you likely don’t need all them nodes with, it just depend on how your tranforming the data. Some nodes I prefer to just use http request to call apis. So you may not need them all, but if you’d like feel free toshare what you have now, I can see if it can be optimised more if you would like.

Best regards,

Samuel

1 Like

Thank you v much for the help and sharing your thoughts. I also have v positive impressions regarding n8n, but to be specific, I simply don’t understand why I would need 4 nodes to pass the file that I get from the webhook? Maybe I’m missing something, or there is a certain BP regarding files and binary in n8n workflows?

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