Forum Discussion
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
- umashankark78Frequent Visitor
- AnonymousNot applicable
I had problem with using method 2. it aborted with a different error though. any luck with this method?