Forum Discussion

umashankark78's avatar
umashankark78
Frequent Visitor
10 years ago

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?