Hi community,
I have gmail Get mail node that download attachments and send it into Extract From file node.
In the Extract from file node, it shows it receives the correct binary input (attachment_0 and attachment_1) from gmail node, but when I run it it returns error “This operation expects the node’s input data to contain a binary file ‘attachment_0’, but none was found [item 4]”
This is my node setup, the focus should be the two nodes within the blue rectangle:
My assumption is gmail node needs to connect to Google drive node to upload the PDF to google drive, and then extract from file to read from the google drive?
There are similar issues discussed in this post which may have some relevance here. Part of that is to split out the GMail message attachments (multiple binaries) as separate items, and reference the Input Binary Field (name) using an expression that ignores what it is actually named. In your case, if you actually have an email without attachments, there would be no items emitted from the binary-split-out step, so the next node wouldn’t even try to reference something that isn’t there. There is a template titled Upload Multiple Attachments from Gmail to Google Drive - Without a Code Node that demonstrates this a little more academically.