cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Error when sending an email with a pfd document attachment

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Error when sending an email with a pfd document attachment

 

Hi @Joan_Smith7 ,

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Highlighted
Super User
Super User

Re: Error when sending an email with a pfd document attachment

@Joan_Smith7 

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.

Highlighted
Advocate I
Advocate I

Re: Error when sending an email with a pfd document attachment

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

Highlighted
Super User
Super User

Re: Error when sending an email with a pfd document attachment

@Joan_Smith7 

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.

Highlighted
Advocate I
Advocate I

Re: Error when sending an email with a pfd document attachment

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

Highlighted
Super User
Super User

Re: Error when sending an email with a pfd document attachment

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-

 

Highlighted
Community Support
Community Support

Re: Error when sending an email with a pfd document attachment

 

Hi @Joan_Smith7 ,

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Advocate I
Advocate I

Re: Error when sending an email with a pfd document attachment

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

 

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,823)