Gmail keeps giving "File Name: Value must not be empty" and "Data: Value must not be empty" errors

:bullseye: What is your goal?

I’m facing an issue in Make.com with Gmail attachments and embedded images.

Workflow summary:

A strategic report is generated successfully as a PDF
The PDF is downloaded/exported correctly from Google Drive
The PDF is then analyzed by AI to generate a custom outreach email
Gmail module then sends:
custom email body
one embedded PNG image/signature
one attached PDF report
recipient email from Google Sheets

:thinking: What is the problem & what have you tried?

Issue:
Gmail keeps throwing:

“File name: Value must not be empty”
“Data: Value must not be empty”

Important details:

PDF export/download is working correctly
PNG image download is also working correctly
PDF binary starts with %PDF
PNG binary starts with 89 50 4E 47
I tested using:
only PNG
only PDF
both together
Same error appears in all cases
Tried static filename values as well
Gmail body type selected:
“Text, files and images”
not raw HTML

The issue seems to happen specifically when downloaded binary files are passed into Gmail as:

embedded image
attachment

Hey there,

your last screenshot shows only the download module was ran manually. Can you show some screenshots from the scenario history and check the the input data of the Gmail module?

To get the input data from Gmail, I need to run it, but it cannot run until the error is there

Without Gmail, everything is running just fine

Can you try mapping the file manually? Change the toggle to Map instead of Google Drive or Docs.

I re-authorised, deleted the old module and made another one. It is working now. Thanks though :heart: