Forum Discussion

decarsul's avatar
decarsul
Helper V
11 months ago
Solved

Issue renaming reports using GIT

Good day all,   We've been using GIT to track our changes on reports roughly since the preview feature for powerbi projects came out. Its not been flawless but mostly manageable and getting better ...
  • rohit1991's avatar
    11 months ago

    Hi decarsul 

     

    Renaming reports while using GIT integration can be tricky. If you just change the name inside the workspace, the GIT repo and the semantic model folder still hold the old name. That mismatch is what causes the ByPath reference error.

    To properly rename a report, you should:

    1. Open the report from the GIT-connected workspace and save it with the new name.

    2. Remove the old report and its semantic model folder from both the workspace and the repo.

    3. Commit and push your changes back to GIT so the repo reflects the new structure.

    4. Update or re-publish the workspace app so the change flows through everywhere.

    The important point is that both the report file and the semantic model need to be updated in sync. If the old folder remains in the repo, the workspace will still try to reference it, which leads to errors.

    Currently, there isn’t an automatic rename feature for reports when GIT is enabled. It’s essentially a manual remove-and-recreate step to keep the workspace, GIT repo, and app aligned.

    So the procedure is: rename<<clean up old files<<push to GIT<<update app. This keeps everything consistent without errors.