Error: Gmail Sender Failed!
There was an error in your Gmail Sender node. We can help you troubleshoot in the Gumloop Forum! https://forum.gumloop.com
Goal: To create a flow that reads the email addresses from a Google Sheet, forms a personalized template with the name (from the sheet), sends the email to the addresses (from the sheet)
Expected: Run to flow successfully
Actual: Run stops at Step 1 of Gmail Sender: Loading [attachment_name].pdf from storage.
What I’ve tried:
Deleting and re-adding the node
Revoking and re-granting gmail access/credential
Refresh the run
Delete and re-add the attachment
Use the ‘Link’ method to load the attachment from Drive
Reading the docs + forum
Background:
New to gumloop, this is the first run I’ve created, so it’s possible I might’ve missed something out in the instructions to set this up.
Hey @mayankrustey - Thank you for the detailed post and sharing the run link. Your flow setup is correct however as of now we don’t support passing the file_name from the Drive File Reader node directly to the Gmail Sender node. We’re going to fix this soon.
Meanwhile, you can use the Drive Folder Reader node that outputs the file object and you can connect that directly with the Gmail Sender.
It seems like the Folder Reader returns a list of files. I went ahead and created a folder with just the file I need.
However, since I’m running the Gmail sender on loop, it requests for a list of items with the same size as the Gmail Sender list.
I ran into this issue with the File reader as well, but I was able to fix that with the Duplicate List Operation, however, I think that’s not an option anymore because the Duplicate node expects a single item and not a list - and the Folder reader returns a list.
I also thought about setting the Folder reader to the Loop mode, but I think that doesn’t work as intended as well, since that would make it a List of a List of files.
Yes you can solve this by using the Get List Item node and setting the index to 0. This means it’ll return only one file which you can pass onto the duplicate node and then the Gmail Sender node.
Alternatively, if the file is going to remain the same you can upload that to the Gumloop file directory and then use that file name as an input to the duplicate node. https://docs.gumloop.com/core-concepts/files