web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PDFs getting corrupted...
Power Automate
Answered

PDFs getting corrupted when sent as an email attachment from OneDrive.

(0) ShareShare
ReportReport
Posted on by 134

I have created a flow which populates a word document template, saves the changes as a separate word doc, which is then converts it into a pdf and then saves it within OneDrive. Until this this point in the flow no errors have occurred.

 

I then wanted to send a email via Outlook with the PDF attached.

 

My issue is that the attached PDF in the email will not open as I get the error message: "This file cannot be be previewed because it is corrupted", now I struggle to understand why it is saying it is corrupted as I am able to open the PDF just fine from within the OneDrive folder.

Categories:
I have the same question (0)
  • jdoss Profile Picture
    458 on at

    Can you attach a screenshot of the flow, specifically the email part. Sometimes this happens when you don't have the file extension added to the name in the filename area of the add attachments.

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @G0Springs ,

     

    It seems that works fine on my side. Could you please provide more details about you flow?

    I have made a test for your reference.

    vyujincuimsft_0-1646126075953.png

    vyujincuimsft_1-1646126088373.png

    Result Screenshots:

    vyujincuimsft_2-1646126106509.png

    vyujincuimsft_3-1646126121288.png

     

    Best Regards,

    Charlie Choi

  • G0Springs Profile Picture
    134 on at

    I was able to get it to work eventually, I was previously using the wrong dynamic content.

  • Nate Profile Picture
    2 on at

    Hey, ive got the same issue now but don't unterstand really how to change the dynamic content so that it is correct. 

    I try to build up the same flow, but with one difference I don't try to safe any documents. I just want to convert a word into pdf and sent it out via an excel where all the mail Adresse are. 

    Any possibility that you know how to get this corrupted file correct? 

     

    Many Thanks, Nate

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard