I try to create a very simple workflow by uploading Gmail attachement into Gdrive but I do not succeed. When I have only these 2 nodes, no problem.
The problem
When I had extra nodes between them, with more inputs, it doesnât work anymore. How to deal with binary and other inputs ?
Thanks for helping
Error message
Problem in node âGoogle Drive - Uploadâ
This operation expects the node's input data to contain a binary file 'attachment_0', but none was found [item 0]
My workflow
Information on n8n setup
n8n version: 1.94.1
Database (default: SQLite): (I donât know)
n8n EXECUTIONS_PROCESS setting (default: own, main): (I donât know)
Gmail Trigger generates an attachment with a binary field > attachment_0
No intermediate node deletes binaries
Switch doesnât touch the binary (it only evaluates it)
The attachment_0 field is present just before Google Drive - Upload
Use Move Binary Data if necessary to ensure itâs safe
Make sure the binaries are forwarded correctly, on the Switch node, make sure you DO NOT modify the data structure and only perform the evaluation you need.
1- On nodes like Set, if you use them after the Switch node, set the âKeep Only Setâ option to false so that the binaries are not lost.
2- Verify that the Switch output still contains the binary > attachment_0 field.
3- You can verify this by clicking the âBinaryâ tab in the Switch node output.