Fix Power Query or Microsoft Query Not Working After Saving in Excel
Question details
Users experience an issue where Power Query or Microsoft Query works correctly at first, but becomes completely unresponsive or unavailable after the Excel file is saved and reopened.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Importing and transforming external data using Power Query or Microsoft Query within an Excel workbook.
- Observed behavior
- The queries function initially but stop working, disappear, or fail to refresh once the workbook is saved, closed, and reopened.
Ensure your Excel application is fully updated to the latest version, and verify that your network connection is stable if you are linking to cloud data sources.
Isolate the Issue Using a New Workbook and Local Data
Create a test workbook with a simple local data source to determine if the problem is specific to your original workbook or the original data connection.
By testing a completely new file and a local data source, you can determine if the original workbook has become corrupted or if the issue stems from a network-based source like SharePoint Online.
Open Excel, click on the File tab, and select 'Blank workbook' to start a fresh environment.
Go to the Data tab, click 'Get Data' (or 'New Query'), and select a simple local Excel file or CSV from your computer as the test data source.
Save the new workbook to your local drive. Close Excel entirely, then reopen the file to check if the Power Query connection remains active.
If the local file works flawlessly, try connecting this new workbook to your original source (such as SharePoint Online). Take note of any changes or errors that occur to pinpoint network or permission issues.

Verify Excel Version and Account Settings
Check your Office account details to ensure your license is active and your version supports advanced Power Query features.
Try WPS Office for Stable Data Management
If Microsoft Excel continues to experience crashing or broken queries after saving files, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for handling spreadsheets, analyzing data, and viewing complex workbooks without the heavy resource drain.
- 1. Download WPS Office: Visit the official WPS website to download the free installation package for your operating system.
- 2. Install and Launch: Run the installer, open WPS Spreadsheet, and explore the intuitive workspace.
- 3. Open Your Workbooks: Click 'Open' and select your existing .xlsx files to continue your data management tasks seamlessly.

Frequently Asked Questions
Why does Power Query disappear after saving my Excel file?
This usually happens due to a corrupted workbook cache, incompatible COM add-ins, or network connection drops when linking to cloud sources like SharePoint. Isolating the issue in a fresh workbook helps identify the exact cause.
Can I recover my Power Query connections if they stop working?
Sometimes you can restore functionality. Navigate to the Data tab, click 'Queries & Connections', and attempt to refresh the source. If the pane is entirely blank or grayed out, the data model within that specific file may be corrupted.
Does clearing the Power Query cache help with saving issues?
Yes. Go to Data > Get Data > Query Options > Data Load, and select 'Clear Cache'. This forces Excel to rebuild the data connection from scratch upon reopening, which can resolve saving-related freezes.
Is there a limit to how much data Power Query can save without failing?
While Excel worksheets are limited to 1,048,576 rows, Power Query can load millions of rows directly into the Data Model. However, exceeding your system's available RAM or running 32-bit Office can cause the application to fail when attempting to save the data model.




