Fix Power Query Errors Caused by Hidden Excel Workbook Data
Question details
Power Query returns random corruption and unavailable-source errors when refreshing data from multiple Excel workbooks.

- Product
- Microsoft Excel / Power Query
- Device & OS
- not provided
- Scenario
- Refreshing an Excel or Power BI dashboard that relies on multiple external Excel workbooks as data sources.
- Observed behavior
- The queries fail with random corruption and unavailable-source errors, preventing the dashboard from updating correctly.
Before removing hidden properties, ensure you have a backup copy of your original source workbooks, as removing metadata and personal information using the Document Inspector cannot always be undone.
Remove Hidden Metadata Using Document Inspector
Clear hidden document properties, personal information, headers, and footers from the source workbooks to prevent interference with Power Query.
Hidden metadata generated by different applications or users can sometimes corrupt the data structure recognized by Power Query. Stripping this invisible data ensures a clean connection between your source files and the dashboard.
Open the specific Excel workbook that is acting as the source file for your Power Query connection.
Go to the 'File' tab, click on 'Info', select 'Check for Issues', and choose 'Inspect Document' from the dropdown menu.
Ensure the checkboxes for 'Document Properties and Personal Information' and 'Headers, Footers, and Watermarks' are selected, then click the 'Inspect' button.
Once the inspection is complete, click 'Remove All' next to the categories where hidden data was found to clean the workbook.
Save the workbook to preserve the changes, close the file, and then try refreshing your Power Query or Power BI dashboard.

Verify File Paths, Permissions, and Structure
Ensure that the file paths are accessible and the workbook structure matches what Power Query expects, which can also trigger unavailable-source errors.
Experience Seamless Spreadsheet Management with WPS Office
Struggling with heavy Microsoft Excel files and complex query errors? Try WPS Office. It provides a lightweight, fast, and completely free alternative for managing spreadsheets, analyzing data, and handling large workbooks without the frequent metadata corruption issues.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free office suite and install it on your device.
- 2. Open Your Data Files: Launch WPS Spreadsheets and open your existing .xlsx or .csv data files seamlessly.
- 3. Analyze Data Efficiently: Use the built-in formulas, pivot tables, and chart tools for quick, stable data analysis.

Frequently Asked Questions
Why does hidden metadata cause Power Query errors?
Hidden metadata, such as custom document properties or background XML data created by third-party applications, can sometimes corrupt the internal structure of the Excel file. When Power Query attempts to read this corrupted structure, it fails to locate the expected tables or sheets, resulting in unavailable-source errors.
Can I recover personal information after removing it with Inspect Document?
No, once you click 'Remove All' in the Document Inspector and save the workbook, the hidden properties and personal information cannot be restored. Always keep a backup copy of your original file before running the inspector.
Does this solution work for Power BI refresh errors as well?
Yes. Since Power BI uses the same underlying Power Query engine as Excel, removing hidden metadata and properties from the source Excel files often resolves Power BI data refresh failures related to corrupted or unavailable sources.
How can I prevent these source corruption errors in future workbooks?
You can prevent these errors by regularly inspecting source files before connecting them to Power Query. Additionally, try to avoid heavily formatting source data files or adding unnecessary headers, footers, and custom document properties if they are only meant to be raw data feeds.




