Forum Discussion
Dataflow to SharePoint folder to combine XLSX files Error: DataFormat.Error: Root element is missing
- 4 years ago
I found the problem and it was one of the (100s of) files in the folder. I just now have to find out which one.
Thanks, there is nothing outside of basic data query functionality that I am doing here.
I create a "Sharepoint Folder" data query with a sharepoint connection that works fine for .csv file combining, but fails with these Excel files.
I filter to the folder in Sharepoint (I have tested this with a fresh connection to Sharepoint numerous times). Then use the "Combine Files" feature in the content column. It creates the helper query and converts each file (they are all identical excel files and only excel files are in that folder).
It errors when I just refresh the flow, and I can trigger the error in the dataflow editor when filtering by string values:
I found the problem and it was one of the (100s of) files in the folder. I just now have to find out which one.
- otravers4 years agoCommunity Champion
You should be able to isolate the erroring row/file, probably best to do it from the Expanded step of your query.
https://radacad.com/exception-reporting-in-power-bi-catch-the-error-rows-in-power-query