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 / Error when sending an ...
Power Automate
Answered

Error when sending an email with a pfd document attachment

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I'm attaching a pdf document to an item in a SharePoint list, the incoming email does not open the pdf.  It says "the document was not decoded correctly" (photo 1).  The inicial pdf says 112 Kb of weight (photo 2) and the email attachment says 219 bytes (photo 3).

 

Photo 1Photo 1

Photo 2Photo 212.PNG

How can I solve this?

----

I'm manually attaching the file to a SharePoint list and in the flow I use the action "When a new item is modified" ant It evaluates some conditions. I'm using an action "get attachment content" to have access to the file attached in the list.

 

Photo 2.PNG

 

After this, in the action "Send an email" in advanced options, I use this to relate the file:

 

Photo1.PNG

 

Thanks.

Categories:
I have the same question (0)
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Hi there.  Can you post an image of the Flow steps used to attach the item to the email?  Specifically looking for the filename and file content parts.


    Thanks!

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @edgonzales I posted the images of my flow at the end of the original post.

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @Anonymous 

    Ok, the "ID" is just a unique identifier (almost like a serial number), so you want to put the actual content in that field.  That's why you're getting the error in Outlook.

     

    Take a look at this thread and it will help attach a SharePoint file to the email.

     

    Keep us posted.

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I've changed ID for actual content and it generates the email but the fil still doesn't open.

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    Did you follow the steps on the other thread?  Are you getting the same error or is something else happening?  Can you post a pic of the updated steps?

     

    Thanks!

    -Ed-

     

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

     

    Hi @Anonymous ,

     

    Please try the following method to configure Flow. Considering that the item may contain multiple attachments, you need to use the following methods to integrate the attachment.

    Image reference:

    62.PNG63.PNG

    Details of Apply to each:

    64.PNG

     

    Besides, please check this blog and see if it helps:

    https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bacao-msft  this was really helpul. Thanks.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard