A Power Query records every cleaning step and replays them at each refresh, which is exactly why a change in the source can break it: a renamed column, a new value in a typed column, or a deleted sheet makes a later step fail or silently skip rows. After any source change, open the query, refresh it, and read the Applied Steps list before trusting the loaded table.
What you need
- The workbook with the Power Query
- A note of what changed in the source data
- A copy of the workbook to test the refresh in
Step 1: Refresh the query and watch for errors
In the workbook copy, choose Data, Refresh All, and watch for an error on the query. If a step fails, Power Query reports which step; note it before opening the editor.
Step 2: Read the Applied Steps list top to bottom
Open the Power Query Editor and read the Applied Steps in order, clicking each step to preview its result. Look for a step that references a column that no longer exists, a type change that no longer fits, or a filter that now removes rows it should keep.
Step 3: Fix the broken step and re-check the loaded rows
Edit or replace the broken step so it matches the new source, then Close and Load and count the loaded rows against the source. The row count must match the source after the fix.
Worked example: synthetic monthly sales query
The table below is a synthetic example. It shows the expected result of checking applied steps after a refresh; no query was run.
| Check | Value | Result |
|---|---|---|
| Rows in the source file | 50 | After the change |
| Rows loaded before the fix | 42 | 8 rows missing |
| Broken step found | Renamed column | Region renamed to Area |
| Rows loaded after the fix | 50 | Matches the source |
| Steps in the query | 6 | All run without error |
Expected result (UNTESTED). after the source renamed Region to Area, the query loads 42 of 50 rows; fixing the step that references the old name loads all 50 rows and all 6 steps run. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A step that filters on a value that no longer exists removes nothing and reports no error; check the row count, not just the errors.
- Changing a step’s order can change the result; a filter applied before a type change behaves differently from one applied after.
- The source file is never changed by the query, so a fix must be made in the query steps, not in the source.
- A query that loads to the Data Model hides its rows; load to a sheet to count them.
