Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SimoneCordella
New Member

Report is duplicated when deployed by API

Hi All,

I'm facing a very common issue when deploying report with API, I have a report connected to a dataset the report is deployed on two different workspaces and each workspace contains a different dataset to which the report should be connected once deployed:

dev workspace:

     dev dataset <- report

uat workspace:

     uat dataset <- report

 

When I develop the report is connected to the dev dataset, when I need to move to uat workspace I want to deploy it with devops pipeline using powerbi api. The problem is that the report is duplicated once deployed in the uat workspace so I end up with 2 reports with same name: one connected to the uat dataset (the old report) and one connected to the dev dataset (the one with latest changes). The issue is that PowerBI service consider different the report that I'm going to deploy even if it has the same name of the one already present in the workspace just because it is connected to a different dataset.

I try with different solution:

- remove the report before the deploy and after deploy rebind the report to the correct dataset but I can't use this solution as it change the reportId and so the link of the report;

- change the pbix extension to zip and update the Connections file and then convert back the zip archive to pbix, this doesn't works as when I convert the zip back to pbix the report is corrupted;

- pbi-tools it as the exctract and compile command that allow to change the Connections files and obtain the updated pbix but the extract command is not available in pbi-tools.core so I can't use this command in Azure devops so also this solution doesn't work for me;

 

There are other way to change the dataset to which a report is connected programmatically?

 

2 REPLIES 2
SimoneCordella
New Member

Hi,

Yes I forgot to mention in the first message but I tryed also them but they suffer of the same issue. The report is duplicated.

lbendlin
Super User
Super User

Have you considered using deployment pipelines instead?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.