Forum Discussion

HanafiHalim's avatar
HanafiHalim
New Member
1 year ago
Solved

DataFormat.Error: We were unable to load this Excel file because we couldn't understand its format.

When trying to refresh a report manually by clicking refresh now button on Power BI Services after upload files on sharepoint, this error popup "DataFormat.Error: We were unable to load this Excel fi...
  • v-echaithra's avatar
    1 year ago

    Hi HanafiHalim ,

    Thank you for your response.


    Power BI’s connector for Excel files stored in SharePoint sometimes fails to interpret the file format correctly sometimes if the file was generated by a third-party tool like RemedyForce or if the file contains hidden metadata or encoding quirks. And sometimes due to Power BI Service received an update that changed how it parses Excel files.

    Instead of manually opening each file use a Power Automate flow to open and re-save the Excel files after upload.Open Power Automate Desktop

    Create a new flow:

    Use For Each File in Folder action pointing to your SharePoint synced folder
    Use Launch Excel, Open Workbook, and Save Workbook actions
    Close workbook
    Save and run the flow

    You can even set this flow to trigger after a file upload or on a schedule.