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 / 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
    Microsoft Employee 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
    Microsoft Employee 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

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 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard