Forum Discussion
Workspace Git Integration - Unable to sync a renamed Power BI dataset and report to the workspace.
- 2 years ago
I was able to solve this by deleting the pbip and its files locally then push and merge it to the branch that is connected in the workspace.
- 2 years ago
FYI, did not work for me...
However, in local file system I tweaked
*.Dataset/item.config.json *.Report/item.config.jsonand bumped up the logical ID by one... So far no issues with this...
I found a workaround for this problem, maybe someone else will be interested. The report and semantic model in Power BI Project (.pbip) each have their own LocalID. These LocalIDs are somehow related, but it's not clear to me exactly how. Therefore, if you currently (December 2024) want to synchronize multiple Power BI Projects (.pbip) via Git/GitHub that were originally created as one, later copied and when you try to synchronize you get the error "Duplicate logicalIDs, This action can't be completed because the following items have duplicate logicalIDs. ", it is not enough to simply change the LocalIDs in the .platform files that are located in the <your project>.Report, <your project>.SemanticModel directories. Even though it's a valid GUID.
When I try to open a project with such manipulated LocalIDs in Power BI Desktop, I get the error "Cannot oper report, Cannot read '<path to your project>\<your project>.Report\.platform': Required properties are missing from object: logicalID, line 7, position 13."
The trick I use is to open a new blank project in Power Bi Desktop, name it the same as the one with the duplicate localID, and save it in a temporary directory as .pbip. I then copy the two .platform files from it into <your project>.Report, <your project>.SemanticModel directories. Synchronization with GitHub then works and further development can continue in Power BI desktop.
It worked! Thanks