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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send email with docume...
Power Automate
Unanswered

Send email with document PDF - attachment is corrupted

(6) ShareShare
ReportReport
Posted on by 57

Hi all,

i'm new user with Power Automate, in the last weeks i created some easy flow and i really appreciate the powerfull of the tool.

Now, i'm banging my head since 12 hours on a flow that produce PDF files from an excel database and Word Template (as mail merge) and send an email with the document produced in PDF.

The document PDF that i write on OneDrive is ok. The attachment is corrupted. 


I read all the topics about this problem and i change many times the configuration but i can't still solve my issue.


Please, help me to undestand what i'm wronging.

 

i attach some pictures of my flow. In the third one, the point the critical configuration.

Thank you very much for you help

Categories:
I have the same question (0)
  • Verified answer
    rmad Profile Picture
    57 on at
    Re: Send email with document PDF - attachment is corrupted

    I solved!

    the problem is a bug in the new version of Power Automate.

    When i saved the flow after i set the CONTENT for the attachment, the setup was changed automatically into a function base64(body('Convert_file'))

    The solution is to open the EDIT with the old version of Power Automate and this configuration is saved without changes. The PDF attachments are not corrupted any more.

     

  • railgun0w0 Profile Picture
    on at
    Re: Send email with document PDF - attachment is corrupted

    Thank you so much, switch classic mode worked

  • l1l1l1l1ld Profile Picture
    16 on at
    Re: Send email with document PDF - attachment is corrupted

    Can you share the path and screenshots to get to the older version of Power Automate?

  • RichardP Profile Picture
    22 on at
    Re: Send email with document PDF - attachment is corrupted

    First of all - THANK YOU!!!!!

    This was driving me crazy!!!

     

    The amount of things I've tried looking through community posts, watching emails, and for this all to be because of a simple interface bug - geez!!

     

    Worked like a charm!!

     

    I need to find a way to report this issue to Microsoft. It needs to be fixed. Who knows what other errors are caused by this new interface.

  • RichardP Profile Picture
    22 on at
    Re: Send email with document PDF - attachment is corrupted

    I hope this still helps you.

     

    While editing a flow, click on the 3 dots in the top right and press "switch to classic designer".

    And that's it - problem solved!


    See image below:

    RichardP_1-1701871708895.png

     

  • DataSuportTeam Profile Picture
    7 on at
    Re: Send email with document PDF - attachment is corrupted

    I was with the same problem.

    Problem solved switching to the old version.

  • RamaSpeaks Profile Picture
    13 on at
    Re: Send email with document PDF - attachment is corrupted

    Hi rmad, thanks for your post / reply. It helped solving several hours of working on fixing this issue of Attachment get corrupted in Power Automate flow. Switching to classic view helped, worked excellently. Thanks a lot!

    Seems Microsoft never changed in past more than three decades, in making its customers as testers for all their products by releasing it with no care for bugs. Not sure how such highly paid associates of Microsoft produce and deliver such low quality products with no accountability or even care of its customers. 

  • mohamed_mahmoud Profile Picture
    2 on at
    Re: Send email with document PDF - attachment is corrupted

    you are brilliant! i thought something went wrong in my flow 

  • simonscorpio Profile Picture
    2 on at
    Thank you so much

    Like others, I've been banging my head against a brick wall for 2 days trying to figure out why my attachment flow would not work. Switch off the new editor and presto, everything works first time. Hey MicroSoft how about actually telling people about this or - just a wild stab in the dark here from the inexperienced - actually fixing the problem. Ultimately, something that works is, in computing, more valuable than something that looks pretty!

  • stov1a Profile Picture
    55 on at
    Re: Send email with document PDF - attachment is corrupted

    Help! I am using the classic editor and the file is still corrupt and can't be previewed from the email. However, the file created in SharePoint it totally fine.

     

     

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard