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 / Can't open the excel s...
Power Automate
Suggested Answer

Can't open the excel sheets my flow sends to my Onedrive folder

(1) ShareShare
ReportReport
Posted on by 4
The goal of my flow is to send the excel sheet content of an automatic email sent to my shared mailbox every Friday into my personal onedrive folder called Source Data as seen above. The File name (fx) is: concat(formatDateTime(utcNow(), 'yyyy-MM-dd'), '_', items('Apply_to_each')?['name'])
The File Content is: Attachments Content
 
The flow seems to detect the email fine and automatically sends an excel sheet to my Onedrive folder, however when i try to open it - it says:
 
Is there any way to fix this? Thanks
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
    Hi @j1700,

    The issue is that the Create file action saves the attachment using Attachments Content directly, but Power Automate passes this as base64 encoded binary. OneDrive saves it correctly but Excel cannot open it because the file content does not match the extension.

    The fix is to wrap the file content with the base64ToBinary() function instead of using Attachments Content directly.
    In the File Content field of your Create file action, replace Attachments Content with this expression:

    base64ToBinary(items('Apply_to_each')?['contentBytes'])

    This converts the attachment from base64 to proper binary before saving, which is what OneDrive needs to store the file in a format Excel can open correctly.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

     

  • Suggested answer
    Ellis Karim Profile Picture
    12,163 Super User 2026 Season 1 on at
     
     
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    In my opinion, this should work without any extra steps.
     
    Microsoft docs say that with “Include Attachments = Yes”, the trigger already provides the attachment content, so using “Attachments Content” directly is supported.
     
     
    Maybe check:
     
    Open the original attachment from the email -> does it work?
    Check file size -> is it very large?
    Check you’re not picking the wrong attachment
    Test with another file first
    Check if the email/attachment is encrypted
     
     
  • Valantis Profile Picture
    6,735 on at

    Hi @j1700,

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

    Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.

     

    Thanks and have a great day!

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard