Skip to main content
Question

PDF Attachment Issue in my Zap

  • March 24, 2026
  • 6 replies
  • 48 views

"Hi zap Community 

I need urgent help with a PDF attachment issue in my Zap. I have been troubleshooting this for a while and need expert guidance.

My Zap workflow:

Step 1 — Tally — New form submission trigger Step 2 — Airtable — Create record Step 3 — OpenAI — Generate AI safety analysis Step 4 — Google Docs — Create document from template Step 5 — Delay — 2 minutes Step 6 — Google Drive — Add File Sharing Preferences Step 7 — Gmail — Send email with PDF attachment

What is working:

  • Zap test runs — email arrives WITH PDF attached correctly
  • All steps show Success in Task History
  • Google Doc is being created correctly every time
  • File sharing is set to Anyone on internet with link can view
  • Google Drive folder is set to public

What is NOT working:

What I have already tried:

  • Added 2 minute delay between PDF export and Gmail
  • Set Google Drive folder to public sharing
  • Added Google Drive File Sharing Preferences step
  • Used Web Content Link from Google Drive
  • Used Document ID from Step 4 in export URL
  • Reconnected all Google accounts
  • Tested browser URL — PDF downloads correctly when accessed directly

The problem seems to be that during live Tally submissions the Google Doc ID from Step 4 is not being passed correctly to the Gmail attachment field even though all steps show Success.

Question: Why does the PDF attach correctly during Zap test runs but not during live form submissions? What is the correct way to attach a Google Doc exported as PDF to a Gmail email during live Zap runs?"

6 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 24, 2026

Hi ​@Jenn22 

You do not need the Delay step.

Add this Zap step: GDrive - Retrieve File by ID

Map the file object to Gmail as the Attachment.

 

Help link about sending files in Zaps: https://help.zapier.com/hc/en-us/articles/8496288813453-Send-files-in-Zaps

 

Otherwise, for us to have true context, posts screenshots showing how your Gmail Zap step is configured in the CONFIGURE tab while EDIT mode for the Attachment fields.

 

 

 


Forum|alt.badge.img+2
  • Zapier Solution Partner
  • March 26, 2026

Hi ​@Jenn22 ,

I see @Troy Tessalone  already gave you the core solution — add a Google Drive — Retrieve a File by ID step and map the file object to Gmail. Let me explain why this fixes your specific issue and add a few details to help you implement it cleanly.

Why Test Runs Succeed but Live Runs Fail

In a test run, Zapier uses data you manually selected. That data is fully resolved at the time you set up the step.

In a live run, your Gmail step is trying to use a dynamically constructed URL:

https://docs.google.com/document/d/{{ID from Step 4}}/export?format=pdf

Even though the Google Doc ID exists, Gmail may not reliably fetch and attach the file from that URL during a live execution. The URL string is passed, but the actual file download can time out or fail silently — resulting in an email with no attachment.

The Retrieve by ID action solves this because it:

  1. Fetches the actual file object from Google Drive

  2. Returns it in a format Gmail expects for attachments

  3. Removes the need for Gmail to "discover" the file via a URL

Exactly How to Set It Up

Step 4 — Google Docs: Create document from template
Keep this as is. Make note of the File ID output field.

Step 5 — Delay: 2 minutes
You can keep this. It gives Google Drive time to finalize the file.

Step 6 — Google Drive: Add File Sharing Preferences
Keep this. You want the file publicly accessible before Gmail attaches it.

Add New Step — Google Drive: Retrieve a File or Folder by ID

  • File ID: Map from Step 4 → File ID (not the URL or Web View Link)

Step 7 — Gmail: Send Email

  • In the Attachment field, delete your manually constructed URL

  • Instead, map from the Retrieve step → the field labeled File (or File Object)

Documentation for Reference

Hope this helps you get it sorted!

If you're still running into issues, drop a screenshot of the error and a quick description of what your Zap is doing, happy to take a look!
And if you'd rather just get it sorted quickly, I offer a free 20-min Zapier troubleshooting call. Book it under Resources on my Zapier Directory profile: https://zapier.com/partnerdirectory/automatemybiz


  • Author
  • Beginner
  • March 29, 2026

Thank you for your response . I did this and tried again received email with PDF from zap but not with Tally form. Not sure where am i going wrong. If someone its available to coach me over a zoom call i will really appreciated.


  • Author
  • Beginner
  • March 29, 2026

Hi ​@Jenn22 

You do not need the Delay step.

Add this Zap step: GDrive - Retrieve File by ID

Map the file object to Gmail as the Attachment.

 

Help link about sending files in Zaps: https://help.zapier.com/hc/en-us/articles/8496288813453-Send-files-in-Zaps

 

Otherwise, for us to have true context, posts screenshots showing how your Gmail Zap step is configured in the CONFIGURE tab while EDIT mode for the Attachment fields.

 

 

 

Thank you for your response . I did this and tried again received email with PDF from zap but not with Tally form. Not sure where am i going wrong. If someone its available to coach me over a zoom call i will really appreciated.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 29, 2026

@Jenn22 

For us to have more info, post screenshots showing how your Zap steps are outlined and configured in the CONFIGURE tab while in EDIT mode with the field mappings visible.

 

If you are looking to hire help, there is a directory of Zapier Partners: https://zapier.com/partnerdirectory


Forum|alt.badge.img+1

If it works in the Zap test but not in the live run, the problem is usually that Gmail is getting a link, not the actual PDF file.

Test runs can sometimes handle that better, but live runs are stricter.

The safer way is:

  • first export/download the Google Doc as a real PDF file

  • then use that file in the Gmail attachment field

So the fix is: do not attach the Google Docs export URL directly. Attach the actual PDF file output instead.