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 / Power Automate Creates...
Power Automate
Answered

Power Automate Creates Corrupt SharePoint file

(0) ShareShare
ReportReport
Posted on by 18

I have a flow which saves the attachments - XLSX or CSV files -  to the mail as it is in SharePoint folder. The name of the attachment can be used as files should be rewritten over time. Now all files are created corrupted, therefore cant be open. 

MarharytaHatsuk_0-1659348656127.png

The problem is that formats of files attached and files created are the same.

 

Categories:
I have the same question (0)
  • Verified answer
    MarharytaHatsuk Profile Picture
    18 on at

    Hello there) Have found the solution already. 

    The additional step should be introduced Get Attachments. With this everything works.

    MarharytaHatsuk_0-1659351853320.png

     

    There is also other solution proposed with base64ToBinary () expression, but it didn`t work for me. However you can find more here: How to avoid corrupt email attachment in Power Automate (tomriha.com)

     

  • joshg Profile Picture
    42 on at

    @MarharytaHatsuk 

     

    Hey, what did you put in the Message ID and Attachment ID?

     

    joshg_0-1671737358170.png

     

  • itzkunakri Profile Picture
    2 on at

    He probably used the Message Id and Attachments Attachments Id.

  • mendyeff Profile Picture
    5 on at

    What message ID?

    He setup a flow and goes and adds every message ID?

  • mendyeff Profile Picture
    5 on at

    Ok, I followed the URL MarharytaHatsuk sent and added the "Add ‘Get attachment’ action" and everything is working now.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard