Workflow - Gmail Attachments - Create Google Drive Folder - Upload Files

Hello everyone,

I’m working on an n8n workflow to process Gmail attachments. The flow is designed to:

  1. Trigger on new Gmail emails with attachments.
  2. Create a folder in Google Drive based on the email subject.
  3. Upload the attachments to the newly created folder.

The Issue:

Occasionally, the file upload happens before the folder is fully created, leading to errors. Is there a way to ensure the folder creation completes successfully before the file upload begins?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hello @guivanhelden

Yes, but you should design it to act this way.

Thanks, I understand the error. It was on Code. Now it worked and the flow was like this.
I’m an amateur, I’m learning!

1 Like

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