Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Duplicate report names

I am getting duplicate report names when publishing reports from CLI

 

I have something like this:

// this is PowerShell, but there's not syntax highlighting for it on here -_-
New-PowerBIReport -Path $path -WorkspaceId $workspace.Id -ConflictAction CreateOrOverwrite

Even though I use CreateOrOverWrite I'm getting multiple reports with the same name.

Could it be that they're pointing to different datasets?

 

Only thing I could find to suggest that's an issue is here:

https://www.reddit.com/r/PowerBI/comments/cxwwhc/publishing_to_power_bi_creates_duplicate_report/eyoe5at?utm_source=share&utm_medium=web2x&context=3

No mention in microsoft docs or forums.

Anyone else seen this issue?

4 Replies

  • Got same issue of duplicated reports.

    But on my side, I was publishing manually from PBI Desktop.

    The duplicated reports are using different datasets... (DEV Vs QA )...

  • Hi kevingauv 

     

    yes that will happen if the report is connecting to a different dataset, because this is seen as a new / different report and will create a report with the same name, but the underlying GUID is different.

     

    As far as I am aware this is by design.

  • Anonymous's avatar
    Anonymous
    Not applicable

    I'm getting multiple reports with the same name when deploying to the PowerBI service from the CLI.

     

    I have something like: 

     

    // this is powershell but there's no shell syntax on this for some reason -_-
    New-PowerBIReport -Path $path -WorkspaceId $workspace.Id -ConflictAction CreateOrOverwrite

     

    but I get multiple reports with the same name.

     

    Could this have something to do with the reports pointing to different datasets?
    I found this comment stating that's the case:
    https://www.reddit.com/r/PowerBI/comments/cxwwhc/publishing_to_power_bi_creates_duplicate_report/eyoe5at?utm_source=share&utm_medium=web2x&context=3

    but couldn't find that info on any official microsoft docs or forums.

  • Hi Anonymous 

     

    Even though the report name might be the same there is an underlying GUID which uniquely identifies the report.

     

    What I am suggesting below is NOT SUPPORTED

     

    If you have to make a copy of your PBIX, then change the extension to .ZIP and open it up, you can then look at the Metadata which will have the GUID.

     

    This will be different between the PBIX files and if you want it to overwrite the existing one you will need to copy this guid to the new file.