Forum Discussion

barwe's avatar
barwe
Helper I
2 years ago
Solved

How to create new 'logicalID' localy?

Hey, I have git integration with one workspace. 

 

The folder structure is simple. Its one report and one semantic model: 

Reports.Report

Reports.Dataset

 

I just copy passed the Reports.Report so now the folder look like:

Reports.Report

Reports_Coppy.Report

Reports.Dataset

 

After the commit in the power bi, I received an error:

"Duplicate logicalIDs
This action can't be completed because the following items have duplicate logicalIDs."

 

So I just changed the:

`logicalId` in `./Reports_Coppy.Report/item.config.json` (I just randomly change one character in string)

`displayName` `./Reports_Coppy.Report/item.metadata.json`. 

 

It works, but I am not sure if I am free to set `logicalId` to any string I like, or is there a strict way to do this?

Also, is there something else I should be aware of when I copy/pase the entire [name].Report folder? How to do it properly?

 

Thanks 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    HI barwe,

    I suppose the file structure with git integration should has its own data fold trees and structures to recognize.
    For this scenario, you can't directly add or remove duplicate field to the location. If you want to back up some files, I'd like to suggest you move these files to outside which not affect the recognize processing of current folder structures.

    Regards,

    Xiaoxin Sheng

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI barwe,

    I suppose the file structure with git integration should has its own data fold trees and structures to recognize.
    For this scenario, you can't directly add or remove duplicate field to the location. If you want to back up some files, I'd like to suggest you move these files to outside which not affect the recognize processing of current folder structures.

    Regards,

    Xiaoxin Sheng

  • alihm's avatar
    alihm
    Power BI Team

    If you copy-paste a report, change the logical ID of the new report to a random new GUID and it will work.