Announcements
Hi! Blank PDF attachments in Power Automate emails are almost always a Base64 encoding issue. Here's how to diagnose and fix it.
The Send an email (V2) action's Attachments Content field expects file content as a Base64-encoded string. If the content is passed incorrectly (e.g., raw binary without proper encoding), the resulting attachment will have the correct file size but will be blank/unreadable.
file.pdf
If you're using a Compose action to manipulate the email body, make sure it only handles the email body text and NOT the file content. Passing binary content through a Compose action can corrupt the attachment encoding.
Add a Compose action before the email step and set its input to @{body('Get_file_content')} — check the run output to confirm the content is not null or empty before it reaches the email action.
@{body('Get_file_content')}
Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!
Raghav Mishra — LinkedIn | PowerAI Labs
{ "name": @{items('Apply_to_each')?['name']}, "contentBytes": { "$content-type": @{items('Apply_to_each')?['contentType']}, "$content": @{items('Apply_to_each')?['contentBytes']} } }
Compose
File Content
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 377
11manish 279
David_MA 234 Super User 2026 Season 1