cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors