Forum Discussion

SevsBo's avatar
SevsBo
Responsive Resident
1 month ago
Solved

Interesting bug: renamed a table using Edit Query, made a few minor tweaks, and it went "missing"

I have a template Power BI file with some standard calendars premade:   I used Edit Query to change their names, and also changed the time span they cover. It's a standard approach I use ...
  • Prince0011's avatar
    Prince0011
    1 month ago

    Hi,

    From your description, this appears to be related to how Power Query tracks query metadata during the Apply Changes process.

    When you rename a query and make additional transformations in the same editing session, Power BI can occasionally retain a reference to the original query name in its dependency graph or pending changes. As a result, Apply Changes may still attempt to load the old table name, even though the preview displays the renamed query correctly.

    A few things you can try:

    • Rename the query first, apply the changes, and then make any additional transformations (as you've already found works reliably).

    • Check whether any other queries, parameters, or disabled-load queries still reference the original table name.

    • Open View → Query Dependencies in Power Query to verify there are no lingering references to the old query.

    • If you're using incremental refresh, calculated tables, or relationships, confirm they aren't still pointing to the original query name.

    Since the preview works correctly but Apply Changes fails, this may be a product bug rather than an issue with your query logic.

    If you can reproduce it consistently with a simple example, I'd recommend reporting it through the Fabric/Power BI Issues forum or opening a Microsoft Support ticket. A reproducible sample will help determine whether this is a regression in the current Desktop release.

    Has anyone else experienced the same behavior when renaming a query and making additional edits before applying the changes?

    If you found this reply helpful, please consider giving it a Kudos. If it helps resolve your issue, marking it as the Accepted Solution will help others encountering the same behavior.