Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

  • Nate Profile Picture
    2 on at
    Re: PDFs getting corrupted when sent as an email attachment from OneDrive.

    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

  • G0Springs Profile Picture
    134 on at
    Re: PDFs getting corrupted when sent as an email attachment from OneDrive.

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

  • Verified answer
    v-yujincui-msft Profile Picture
    on at
    Re: PDFs getting corrupted when sent as an email attachment from OneDrive.

    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

  • jdoss Profile Picture
    458 on at
    Re: PDFs getting corrupted when sent as an email attachment from OneDrive.

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow