Forum Discussion
[DataFormat.Error] External table is not in the expected format.
Community,
I am having a problem importing files from a sharepoint folder (6 files that need to be brought together). I see these as .xls files in Sharepoint and therefore use:
let
Source = Folder.Files(.... /sharepoint location".......),
// no problem
#"Removed Other Columns" = Table.SelectColumns(Source,{"Content"}),
#"Added Custom" = Table.AddColumn(#"Removed Other Columns", "GetExcelData", each Excel.Workbook([Content])),
//no problem - I am able to see all the data in PowerQuery
Everything looks fine - ready to go.
However, when I hit "Close and Apply" - the system returns an error:
[DataFormat.Error] External table is not in the expected format.
The original files generated from a SQL query - and then the results of the query are pasted into an Excel file.... The orginal response that is being pasted is a tab delimited file - which may be causing the problem at some level.
Is there a different approach I should be using to open these files? Instead of Excel.Workbook([Content}) is there a something else that will be more appropriate for a tab delimited file?
Thanks in advance.
10 Replies
- ankitpatiraCommunity Champion
Virtual_Ames Can you not use in-built sharepoint connector and connect that way ? Maybe it can get rid of that error using in-built connector.
- Virtual_AmesMicrosoft Employee
Ankit,
Thanks - using the SharePoint Folder approach has the same result.
I can see the folder, and see the .xls files.
However, when I click the Content column to combine binaries, I get the same problem.
(Excel.Workbook(#Combined Binaries) is auto-generated upon clicking the double down arrows in the Content column shown above).
- augustindelafImpactful Individual
Virtual_Ames I have exactly same problem (also xls files from a SharePoint.Files request) !
The only solution that I found is to convert those files to .xlsx
Hope that helps !
Augustin de la Fouchardiere
MYPE
- JordanJacksonAdvocate II
I experianced this error after exporting from third party, when following one of the comments from above I saw that even though I was selecting to export as an excel it was exporting to Html. I would suggest checking this as a troubleshoot method if anyone experiances this in the future.