cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

API Export To File In Group returns Forbidden Error

Hi, I'm trying to use the Export To File In Group end to export a PDF file from my reports and I always get the folowing return:

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

I'm trying to use it in a ASP.NET application with the Master User authentication type and when using the 'Try It' in the Microsoft Docs return the same error as well.

 

The user account has the Power BI Emmbedded A1 capacity, owns the report (don't know if that influences the result) and all the possible permitions its enable too.

 

Can somebody help me with this? I didin't found anything like that until now, and that is really impacting in my business.

2 REPLIES 2
Highlighted
Super User II
Super User II

Re: API Export To File In Group returns Forbidden Error

Hi @geovanafs ,

 

Does your workspace (where the report is residing) assigned any capacities ? I think the error says the report which inside a workspace without have any capacity assigned to it







Did my reply helpful to you ? Please give Kudos

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Regular Visitor

Re: API Export To File In Group returns Forbidden Error

Hi @Jayendran  and @geovanafs ,

 

I face excatly the same problem. In my case, the user I use for exporting has a Power Bi Pro licence assigned and the workspace the report is published to is in premium capacity. I tired to export the report from the workspace mentioned as well as from my personal workspace. It didn't make any difference. The user I use is also the owner/publisher of the report.

 

My question is: since the error message hints about licence or capacity issues, what are actually the requirement to be able to use this REST API?

 

Another question. The API doc mentions the following:

Required scope: (all of the below)

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

How can I check if this requirement is fullfilled?

 

Any hint or help would be greatly appreciated!

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors