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
umashankark78
Frequent Visitor

power bi embedded reports overwrite causes (500) Internal Server Error.

Want to overwrite a dataset & report without losing the current reportid.

 

Method 1 :

 

When using the POST method (POST https://api.powerbi.com/beta/collections/{collectionName}/workspaces/{workspaceId}/imports), "nameConflict" uri parameter with value "Overwrite" causing the error "The remote server returned an error: (500) Internal Server Error." But the same works without the "nameConflict" parameter, but creates a duplicate dataset & report which I do not want.  If I use the delete & add new dataset then it will not serve the purpose because the shared report URL will have the old reportID which will not reflect any changes to the report.

 

Method 2 :

 

// Import API method

var import = await client.Imports.PostImportWithFileAsync(workspaceCollectionName, workspaceId, fileStream, datasetName, "Overwrite");

 

This method also causes the same error "The remote server returned an error: (500) Internal Server Error."

 

Is there a solution for this issue? 

2 REPLIES 2
Anonymous
Not applicable

I had problem with using method 2. it aborted with a different error though. any luck with this method?

umashankark78
Frequent Visitor

Code reference that I've used for Method 1 : https://msdn.microsoft.com/en-us/library/mt711504.aspx

 

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.