Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
I had problem with using method 2. it aborted with a different error though. any luck with this method?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |