Fix Power Query Errors When a Worksheet Name Changes in Excel
Question details
The user needs to fix Power Query navigation failures caused by imported Excel workbooks having altered worksheet names.

- Product
- Power Query
- Device & OS
- not provided
- Scenario
- Importing data from an Excel workbook where the source worksheet name dynamically changes or gets renamed.
- Observed behavior
- Power Query fails to refresh or load data because the navigation step references a hardcoded worksheet name that no longer exists in the source file.
Before modifying your query, identify the exact name of the new worksheet in your source Excel file and ensure no other structural changes were made to the data columns.
Update the Navigation Step to Match the New Worksheet Name
Manually edit the Power Query navigation step to reference the newly renamed worksheet in your source file.
When an imported workbook generates a new worksheet name (such as appending a number like 'ContentAuthorReport (3)'), Power Query loses its reference. You can fix this by updating the hardcoded name in the formula bar or Advanced Editor.
In Excel, go to the Data tab, click on 'Get Data', and launch the Power Query Editor for your broken query.
In the 'Applied Steps' pane on the right, select the 'Navigation' step (usually the second step after 'Source').
Look at the formula bar at the top. Find the section that says Item="OldWorksheetName" and replace 'OldWorksheetName' with the exact new name (e.g., 'ContentAuthorReport (3)'). Press Enter to apply.
Once the step is updated, click 'Close & Load' or 'Refresh Preview' to pull in the data from the renamed worksheet.

Select the Worksheet by Index for a Stable Query
Make your query more reliable by targeting the worksheet based on its position rather than its specific name.
Enjoy Seamless Data Management with WPS Office
While Power Query is a powerful feature in Microsoft Excel, errors caused by minor file changes can disrupt your workflow. For a lightweight, fast, and highly compatible alternative, try WPS Office. It handles complex data formats effortlessly while remaining completely free.
- 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing .xlsx files with full formatting compatibility.
- 3. Analyze Data Without Hassle: Use intuitive built-in tools to manage, filter, and analyze your datasets effectively.

Frequently Asked Questions
Why does Power Query break when a worksheet is renamed?
Power Query records the exact worksheet name during the initial connection in the Navigation step. If the source file's worksheet name changes, the query cannot find the referenced sheet and fails to load the data.
Can I make Power Query ignore worksheet names completely?
Yes. You can modify the M code in the Advanced Editor to select a worksheet by its index position (for example, Source{0}[Data] for the first sheet) instead of its specific name, making the query immune to renaming.
How do I refresh the query after fixing the worksheet name?
Once you have updated the navigation step in the Advanced Editor or formula bar, click 'Done', navigate to the Home tab in the Power Query Editor, and click 'Refresh Preview' to load the data.




