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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Export PowerBI embedded report Forbidden

I have my ASP.NET Core project with an embedded PowerBI report. The report is always shown correct. In the Microsoft documentation, I read that now it is possible to export the report in different format. So, using the example, I put together the application. You have the code in GitHub.

 

The problem I'm facing is when I call

 

// The 'Client' object is an instance of the Power BI .NET SDK
var export = await Client.Reports.ExportToFileInGroupAsync(
                          groupId, reportId, exportRequest);

 

This call raises an Operation returned an invalid status code 'Forbidden'.

 

r4Tx9.png

 

In the Active Directory I have all the required permissions and in particular

  • Report.ReadWrite.All or Report.Read.All
  • Dataset.ReadWrite.All or Dataset.Read.All

Also, I tried to use "Try it" in the documentation. In this case, I have another kind of error

 

{
  "error": {
    "code": "InvalidRequest",
    "message": "Report requested for export is not on dedicated capacity"
  }
}

 

0gLMF.png

 

How can I fix this issue?

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous,

Perhaps you can take a look at the following link about this similar issue if those suggestions suitable for your scenario:

Solved: REST API for Power BI, Reports - Export To File gi... - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.