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 / Error Opening Excel Wo...
Power Automate
Answered

Error Opening Excel Workbook Created by Power Automate

(1) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

I am getting a file extension error when I try to open an Excel workbook created by flow.

There is Excel Workbook1, that is sent to an email inbox, either several times a day or several times a week.

There is Flow1 (created by another), that moves a copy / overwrites Workbook1 to SharePoint Folder1. There is a predetermined file name (the file name is always the same).

When I try to open Workbook1, created by Flow1, I get the following error.

What am I missing? How do I correct this error? 

The flow (that moves the workbook from the inbox to the SP folder)

Phineas_2-1694816224520.png

The folder (with file) -
The SharePoint folder where Flow1 moves/copies inbox Workbook1.

Phineas_3-1694816360085.png

The error -
The workbook couldn't be opened because the file format may not be matching
with the file extension.

Phineas_1-1694816109160.png

Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Phineas ,

     

    What is the file attachment that is being captured by email?

     

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    I'm not sure, but I've always assumed it is some form of excel file; Presumably xlsx.

    All versions I have opened and viewed, outside the influence of modifications by flow, have been xlsx.

    Another thought - should the action in the flow be 'Update file' or 'Create file'?

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Phineas ,

     

    Goes without saying, it makes a huge difference!  Here's what to do:  go to the last failed run, or the run that you got that error message, and look at the trigger output and see what file you are trying to process.  More likely that not, the file is not an excel file OR an .xlsx file.  Please check and then mark as a solution if I am correct.  Then I can show you how to only process .xlsx files with a conditional action.

     

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    Well, here is a fine twist...

    The flow didn't fail.

    The flow completed successfully; The error occurs when trying to open the newly created/overwritten workbook.

    Phineas_0-1694820265014.png

    Phineas_1-1694820435009.png

    The file, as created/overwritten in the folder by the successfully completed flow.

    Phineas_2-1694820667171.png

     

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Phineas ,

     

    Understood.  When you review the trigger outputs, what is the file attachment getting processed?

     

    trice602_0-1694821127721.png

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    This is the trigger info -

    Phineas_0-1694821260726.png

     

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Phineas ,

     

    You have to look at the trigger OUTPUT, not the trigger itself.  In your run that you cannot open the attachment, open the successful flow, then under Output, click on 'Click to download':

     

    trice602_2-1694821783382.png

     

     

     

    In the output, review the file attachment and validate the attachment type:

     

    trice602_1-1694821732773.png

     

     

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    In your example you have 'Yes' in the include attachments.

    In my process only a specific file/attachment is desired, not all files/attachments.

    What should my 'Include Attachments' be set to?

    Phineas_1-1694822052907.png

     

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    Here ya go.

    An aside...does the name (called out by my arrow) matter? As it doesn't match the name in the folder.
    Though the error isn't about he name but about the file type.

    Phineas_2-1694822703600.png

     

  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at

    Hi @Phineas ,

     

    Thanks for sharing.  The file type is correct so please turn on include attachments and run again.

     

     

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