Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Can't upload any RDL report using Power BI rest API in an automated way

Hi All,

 

I am trying to upload a Power BI rdl report to one of the workspaces using Power BI rest API's and getting "Bad Request" error. I tried to decode the exception being thrown but not getting any info out of that. Below is the code snippet that is being is used for uploading 

var result = await pbiClient.Imports.PostImportWithFileAsyncInGroup(groupId, file, reportName, "Overwrite").ConfigureAwait(false)

My question is , Does the Power BI API support RDL report right now. Also the workspace is set to premium capacity with Paginated report workload being enabled. 

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @Anonymous, 

 

Power BI rest API provides Imports - Post Import and Imports - Post Import In Group for us to upload rdl files to Power BI service. 

 

Reference: 

https://dev.to/kenakamu/upload-rdl-file-s-to-power-bi-via-api-28h

 

Best Regards,

Qiuyun Yu

 

 

Anonymous
Not applicable

Already looked into the example.Still we're getting "BadRequest" error. Not really sure what's going wrong as the error is too generic

v-qiuyu-msft
Community Support

Hi @Anonymous, 

 

Please create a support ticket to get help. 

 

Support Ticket.gif

 

Best Regards,
Qiuyun Yu