Medium severitydata flow
Power BI Refresh Error:
DF-Excel-InvalidFile
What does this error mean?
The ADF Mapping Data Flow Excel connector cannot read the target file — either because the file is not a valid Excel workbook format (.xlsx or .xls), the file is corrupt or password-protected, or the file path points to a non-Excel file.
Common causes
- 1The file has a .xlsx or .xls extension but is not an Excel workbook — for example, it is a CSV or HTML file that was renamed
- 2The Excel file is password-protected — ADF cannot read encrypted workbooks
- 3The file was partially written or corrupted during upload and is not a valid ZIP archive (the .xlsx format is a ZIP container)
How to fix it
- 1Open the file locally in Excel and confirm it opens without errors — if it fails to open, it is corrupt.
- 2Check whether the file has a password by attempting to open it: if Excel prompts for a password, remove the protection before moving the file to ADF's source location.
- 3Verify the file format: open the linked service dataset and confirm the format is set to 'Excel', and that the file extension matches the actual format.
- 4Re-upload the file to storage and run the data flow again — if the file was partially uploaded, a fresh upload should resolve it.
- 5Enable Debug mode and run a data preview on the Excel source to confirm ADF can read the file.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide