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
Unanswered

Power Automate Creates Corrupt SharePoint Excel Document

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

my flow consists of the triggers to gather the results from a submitted FORMS (MS FORMS), then there are two parallel actions, one is to load the result onto excel file (which is an audit trails to record all submissions from forms - used lated on as source of data for PBI dahsboard), the other one to create a separate excel file xlsx as an individual file for each person submitting the form. 

 

All seems to be working fine, files are being created and updated BUT the excel that gets created cannot be opened as I get an error: 

 

This workbook couldn't be opened because the file format may not be matching with the file extension.
 
I have properly defined the data objects to be retrieved from results so just for the testing purposes, I am taking employee first name and last name, this should be included within a file created as an excel. Perhaps I should consider not only creating a file but defining a table with headers within a file?

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    First make sure that when you create the file you are adding the .xlsx extension to the filename.  

  • Community Power Platform Member Profile Picture
    on at

    It is there actually, so basically it names the files using two objects + adding an extension xlsx 

     

    truex_0-1646227754809.png

     

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    1) you should probably Concat() those values to make sure you don't get any extraneous spaces.

    2) You can't create an Excel format file by just dumping values as the content.  What you are doing will create a .TXT file, not an .xlsx. You can create a .csv file that can be opened by Excel.  Here's an article on how to do that.

    Quick way to export SharePoint list to Excel file using Power Automate (tomriha.com)

  • Community Power Platform Member Profile Picture
    on at

    Hello

     

    thank you for your prompt reply.

     

    I have realized that instead I can just automatically create an entry into the sharepoint list and then I can manually export it as excel/ csv. 

     

    Do you think I can automate this to generate the csv/ excel when new entry is added but as a document with single line of text for new entry only (separate document for each new entry). 

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    You won't be able to automate that with SharePoint alone.  The export is manual only.  YOu can do it using a flow if you create the file as a CSV instead of an xlsx

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