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 / Convert xlsx. or xls f...
Power Automate
Unanswered

Convert xlsx. or xls files to csv files in a Sharepoint Document Library

(1) ShareShare
ReportReport
Posted on by 43

Hi

 

Would anybody have a template or know how one would convert xlsx. or xls files to csv files in a Sharepoint Document Library.

 

When a xlsx or xls file is uploaded into a Shareppint Document Library - it is converted to a csv file

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @KayBains ,

    there's an action 'Create CSV table' in Power Automate that will convert any array into a csv format.

    You should 'List rows present in a table' (the original Excel file must have the data inside a table) to get all the rows from the Excel file, 'Convert CSV table' to convert the output from the 'List rows...' into a csv format, and then create a file from the data provided by the conversion. image.png

  • Heliant Profile Picture
    16 on at

    what if you do not have table in xlsx. how you going to proceed? And also what if the file is in sharepoint?

  • RobFischer Profile Picture
    119 on at

    This only works with .xlsx files. There is no way to work with a .xls file in microsoft power platforms and they offer no way to convert with flow. This needs to be addressed!

  • Community Power Platform Member Profile Picture
    on at

    Hi all,

     

    I tried this and it converted the xlsx to csv, however about 200 of the records in the original xlsx were missing in the csv output.  My Excel data are formatted as a table.  Any help would be appreciated!

  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @tabrams ,

    try to go to the 'advanced options' in the 'List rows in a table' action and put some number in the 'Top Count' field, e.g. 1000. I think the action will return only 100 rows by default.

  • Community Power Platform Member Profile Picture
    on at

    Thanks so much!  I will give this a try in a few minutes.  Per the action, the default is "all" but maybe that's not accurate.

     

    Capture.PNG

  • Community Power Platform Member Profile Picture
    on at

    Hi

     

    For me converting excel to csv works if i create table in excel but while conversion it add 2 new columns 

    @OData.etag

    ItemInternalId

     

    How should i remove them before writing the output file to my azure storage.

     

    Regards

    Shilpi

  • ImAPilot Profile Picture
    4 on at

    I believe Microsoft will eventually stop supporting .xls format, as Excel began using the .xlsx format with Excel 2007. It doesn't make sense to invest development dollars in legacy formats, so I wouldn't look for a native Microsoft .xls connector any time soon.  That being said, there are many legacy systems still putting out the .xls format, and most of those do NOT support using Excel Tables as many OOB connectors require.

    There are several commercial providers that have single step actions to convert; I have been using one of them for a couple years now to convert .xls to .csv with very good results.  Some providers include Plumsail, Encodian, and Cloudmersive.  Most of these you can find by just scrolling through the list of available actions when building your flow.

  • gr962x Profile Picture
    2 on at

    Hello,
    It works, however it is only copying 256 lines in the created .csv file. Any idea why and how to resolve it?

  • RTbmart Profile Picture
    20 on at

    Hi @gr962x,

     

    I just encountered this same issue and found a solution from OptimalBI:

     

    RTbmart_0-1692968085817.png

     

    Late response, but hope this helps!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard