I am trying to send an email with an attachment using the Gmail node and get an error that I don’t understand. I am able to download that file from the original email and upload it to Google Drive, but for some reason using the same file as attachment in a forwarded email gives an error.
What is the error message (if any)?
property.split is not a function or its return value is not iterable (item 0)
Thanks for posting here and welcome to the community!
This is a pretty common issue we have when handling binary data. Since you need to reference the file in memory rather than provide the binary file itself.
This means instead of using an expression {{ $('Merge').item.binary.attachment_0 }} you only need to provide the attachment field name, like so: attachment_0
Sorry, my bad! You will need to provide the binary file again directly from the original Gmail node. You can do that by connecting it to another Merge node just before the Gmail forwarding node