Hi, @Kastore, it would really help:
- For us to see your flow visually (you can obfuscate / blank anything private)
- For you to say what you need the files in CSV for.
- For you to say if you need to do anything with the CSV files afterwards.
For the first one, please edit your initial post with the screenshots.
The problem is that excel files can contain *so* much information, that simply making CSVs out of them isn't always an easy solution, not least because interacting with Excel is such a pain.
Additionally, to use basic Power Automate functions, like the CSV creation tool, it needs a table in the excel sheet with which to make the CSV from.
So you might think that's fine, I'll just automate adding a table around the data in the excel sheet, right? Wrong, because you have to check to see if the excel sheet already has a table on it.
At this point you're already a few layers deep in logic and you haven't even started to do anything, yet.
---
Separately, and not related to any resolution here, I would also advise one thing above all ... consider what the original usage of the excel file is. Can whomever or whatever is making this file be made to output the information to a different endpoint?
This is because excel sheets are really not supposed to be data storage, they are complicated calculators. At their most simple, they're a useful visual tool for some information, but still it's often best off being interpreted better and more succinctly for a given purpose.
So if you can have the data be input into a SharePoint list, or access an API endpoint that is creating the excel file, or if the file is being made by a person, can they input their data into a Microsoft Form? All of these will capture data more accurately and allow for better processing down the line.
---
Anyway, if you have a premium power automate subscription, I would recommend looking at some of the connectors that do all the hard work for you, like cloudmersive. Their xlsx to csv works really well.
However you'd be wise to look at Graph calls, and in particular the /usedRange endpoint.
https://graph.microsoft.com/v1.0/sites/%7BSITE_ID%7D/drives/LIBRARY_ID/items/FILE_ID/workbook/worksheets(%27%7BSHEET_ID%7D%27)/usedRange
I'd add that some of those IDs are non-trivial to obtain.