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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

0

Embed code generated when re-publishing a report with the same name

When I Publish a report from the Desktop with exactly the same name as one I've previously used and then use the File > Publish to Web option, the same embed code is generated, even if the report and dataset has changed.

Therefore when using that embed code, the original report is displayed not the updated one.

The work around is to use the Edit Report option and Save, but this should be unnecessary shouldn't it.

Any new Publish to Web should generate a new embed code. 

Status: Delivered
Comments
v-haibl-msft
Employee

@aeyre_ppba

 

Are you using the same PBIX file for the report? Based on my test, if I change the report in PBI Desktop and republish to Power BI Service, it will replace the existing one. Then even same embed code is generated, but if we go to the web page with the original embed code, the updated report can be shown properly instead of showing the old report.

 

Best Regards,
Herbert

Vicky_Song
Impactful Individual
Status changed to: Needs Info
 
aeyre_ppba
Advocate I

Yes, I am using exactly the same PPIX file with exactly the same name and saving it in Desktop with exactly the same name before Publishing it. The embed code does stay the same, but the original data/report is displayed.

Only when I save it in the Service to another name or using Edit Report does the new content get published.

I do not experience what you've said.

Thanks

v-haibl-msft
Employee

@aeyre_ppba

 

I can repro the same issue as you now. I’ve reported it internally to Power BI Team: CRI 36683533
I’ll post here once I get any update about it.

 

Best Regards,
Herbert

Vicky_Song
Impactful Individual
Status changed to: Accepted
 
v-haibl-msft
Employee

@aeyre_ppba

 

I've got response from the Product Team.

 

This is by design. If new report just "replaces" old report the embedcode remains the same (to allow users change report without republishing the report and thus enable reuse of already published URL).

 

Regarding the data shown isn't the refreshed one - current caching arch ensures report will show the refreshed data within 1 hour since the refresh\data change time. In order to publish the report with new embed code you can do one of below:

1. Delete old embedCode (via "Manage embed codes" page in Power BI) and the re-publish new report => new embedCode will be created.

2. Upload the new report with new name instead of overriding existing report and then publish it to web.

 

Best Regards,
Herbert

Vicky_Song
Impactful Individual
Status changed to: Delivered
 
aeyre_ppba
Advocate I

Thanks for the response. However, it doesn't make sense that design would be like that.

If the report is updated in any way, we would want the changes to be visible to anyone who looks at the published report. If the user goes to the effort of re-publishing but is happy to use the same embed code again, then you'd expect that they want users to see the latest report, not the original one??!

They have the option to generate a new embed code so that the original report can remain accessible/visible if requried.