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 / Send Email (V2) sends ...
Power Automate
Unanswered

Send Email (V2) sends corrupt attachment

(0) ShareShare
ReportReport
Posted on by 28

Hi,

 

Attaching the excel file to the email does not give any error but when I try to open the attachment I get the following error:

attachment error.PNG

 

The final steps of sending an email is as follows:

1. 

Get content.PNG

2. 

shwetajain1123_0-1705000759198.png

3. 

shwetajain1123_1-1705000846292.png

 

the overall flow looks like :

shwetajain1123_2-1705000914002.png

 

I am not sure what am I doing is wrong causing corrupt email to be generated.

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @shwetajain1123 ,

     

    It should be 

    [
     {
     "Name": "<file name>",
     "ContentBytes": @{body('Get_file_content')}
     }
    ]

     

    Best Regards,

    Wearsky

  • shwetajain1123 Profile Picture
    28 on at

    Hi,

    Thanks for your response...

    This did not work... i tried it...

    shwetajain1123_0-1705032158780.png

     

    shwetajain1123_1-1705032230936.png

     

    Can you please see what am i doing wrong here..?

     

     

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @shwetajain1123 ,

     

    Please remove the '@{}'.

     

    Best Regards,

    Wearsky

  • shwetajain1123 Profile Picture
    28 on at

    Now i get this error : 

    shwetajain1123_0-1705039532114.png

     

    shwetajain1123_1-1705039559630.png

     

    not sure what to do now?

     

  • RouxJMM Profile Picture
    on at

    fContent.png

  • shwetajain1123 Profile Picture
    28 on at

    Still facing problems...

  • RouxJMM Profile Picture
    on at

    Maybe try to save/replace the send email action with a create file action instead to make sure the source content isn’t corrupted.  Also, try to create the file from the base64 that you paste in a compose action for testing.  If you can confirm that the source data is correct then compare the two files in an hex editor.

  • shwetajain1123 Profile Picture
    28 on at

    tried using old designer and it started working...

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard