Forum Discussion

bhayden's avatar
bhayden
New Member
4 years ago
Solved

InvalidRequest: Resource access type View unsupported for Reports

We have a website that displays embedded PowerBI reports.  The website, the code that drives it, and the reports themselves have not changed in months.  This week, the PowerBI API call to generate our embed tokens started refusing to give it to us, instead returning this error:

 

Client error: `POST https://api.powerbi.com/v1.0/myorg/groups/<our-id>/reports//GenerateToken` resulted in a `400 Bad Request` response

InvalidRequest: Resource access type View unsupported for Reports

 

I can't find anything online about this error.  What could be suddently causing this?

  • bhayden's avatar
    bhayden
    4 years ago

    It turns out the endpoint we are using is fine.  Microsoft themselves have example code using this endpoint for View operations.

     

    The problem ended up being a very subtle change on Microsoft's side where a json field name was changed from "Name" to "name", which broke a case-sensitive field lookup in our code.

2 Replies