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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BrianHoj
Frequent Visitor

Replace PBIX file in Embedded

We have gone through and built some sample web apps pointing to some sample PBIX files we loaded up into our Embedded Workspaces.  We would like to replace the existing PBIX file we uploaded with a new one.  How do we overwrite the existing and keep the same DataSet ID?

 

The scenario in the future would be that the user creates their reports in PBI Desktop and imports the data into the file.  We publish to PBI embedded.  At some point they want to change the file, add pages, visualization changes, refresh data, etc..  We don't want to change the App to reflect a new dataset id.  

 

Any thoughts?

1 ACCEPTED SOLUTION

@BrianHoj

 

Based on my test, the report id doesn't change in a overwritten import, thus it won't affect the report embedded somewhere in your application.

 

View solution in original post

4 REPLIES 4
Eric_Zhang
Microsoft Employee
Microsoft Employee

@BrianHoj

 

There's an argument nameconfilict for PostImportWithFileAsync, and as per this github sample, the argument value "Overwrite" can be used to overwrite the already existing dataset.


@v-lvzhan-msft wrote:

@BrianHoj

 

There's an argument nameconfilict for PostImportWithFileAsync, and as per this github sample, the argument value "Overwrite" can be used to overwrite the already existing dataset.


Thanks that helps a bunch.  Does that keep the ReportID the same as well?

@BrianHoj

 

Based on my test, the report id doesn't change in a overwritten import, thus it won't affect the report embedded somewhere in your application.

 

Hi I am using Power BI CLI commands to automate publishing power bi report into workspace

but overwrite option is not working for me anyone knows how can we achieve overwriting report using power bi cli

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.