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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard