Forum Discussion
REST import rdl files
The problem with your code is the value of the nameConflict parameter:
$url = "https://api.powerbi.com/v1.0/myorg/groups/$GroupId/imports?datasetDisplayName=$fileName&nameConflict=CreateOrOverwrite"
For RDL files, the only supported values are Abort or Overwrite.
There is, however, a bug in that we are not returning a helpful error message. We are looking in to fixing this in a future release.
Thanks,
Teresa (MSFT)
Hi All,
I am trying to upload a rdl file to a workspace programatically through Power BI rest API in a .net solution. We are using Power BI .net SDK to acheive this functionality. We are using "PostImportWithFileAsyncInGroup" method to upload the rdl file but getting "Badrequest" error all the time. I have verified that the capacity has been set "A4" and the Paginated workload is also turned on. It would be really helpful if somebody can shed some light on this issue.
Thanks.