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
    2,535 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
    11,994 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
    1,864 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
     
     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard