Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

How to create xlsx file in onedrive using flow

Hi Everyone,

I tried creating an xlsx file using flow, the file is created but when opening it shows the file is corrupted.

Is there any other way to create an xlsx file using flow?

Thanks in advance





@mahmoodhsaud Hello Mahmood.

I hypothesize it is corrupted because you have created a file encoded by UTF-8. I suggest you try this:

1) Using the "Create File" action, set the file contents as a math function.

2) Define the math function as below:


If this method fails, it may require you to create it as a csv file and manually re-save the file as an xlsx.

A screenshot of the flow structure and the corrupted file will make it easier to narrow down the problem.


All the best!

Please accept this as a solution if solved to save time for everyone searching about the same problem, provide any copies of any error messages if not.

Helper IV
Helper IV

HI @kaitogoto, Thanks for your inputs.

The flow is to create a new excel sheet with dynamic file name. Every time a new project is created in powerapps the flow will be called to create a new excel sheet in which a newtable is created with columns and rows are updated from the flow.

I tried using the above function still its showing error



 Thanks and regards,


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,575)