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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Healthec
Frequent Visitor

Operation returned an invalid status code Forbidden Microsoft.PowerBI.Api.V2.Reports

Dear Support Team,

 

I am running Power bi Embed report for user inside external asp.net application. It was working fine, I did not face any issue there.

But from last week I am finding like none of the Power bi reports are loading inside asp.net application.

 

When i debug the application then found below error:

 

Operation returned an invalid status code Forbidden  Microsoft.PowerBI.Api.V2.Reports.<GenerateTokenInGroupWithHttpMessagesAsync>

 

I have visited the app registration inside Azure and in the API Permission section i found below information:

 

"This application is using Azure AD Graph API, which is on a deprecation path. Starting June 30th, 2020 we will no longer add any new features to Azure AD Graph API. We strongly recommend that you upgrade your application to use Microsoft Graph API instead of Azure AD Graph API to access Azure Active Directory resources."

 

In this case i added Microsoft Graph API and provided permission for it like below:

 

PowerbiIssue.PNG

 

As you can see in above image, We have provided all the required permission.

For accessing the Power bi API we use ClientID, Power bi Pro Userid and Password to authenticate.

But getting above exception in below piece of code only.

 

var tokenResponse = client.Reports.GenerateTokenInGroup(GroupId, report.Id, generateTokenRequestParameters);

 

Kindly check and suggest, Since this issue is occurred in Production environment, Please treat it as urgent.

 

Thanks,

Vikash

5 REPLIES 5
v-yiruan-msft
Community Support
Community Support

Hi @Healthec ,

Please review the content in the following links, hope they can help you.

PowerBI Embedded Full Walk Through

Power BI Embed report JavaScript

PowerBI.API.V2 Dataset.DeleteDatasetByIdInGroupWithHttpMessagesAsync Unauthorized response

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Power bi Team,

 

Please respond on above. It is a production issue and has to be fix asap.

 

Thanks,

Vikash

Anonymous
Not applicable

Hello Team,

 

As requested by support team i have logged and create ticket in 

 https://powerbi.microsoft.com/en-us/support/pro/

 

with Pro account and i got one request number: 121010626002294

But did not get any response through mail.

 

Kindly suggest, How could i track this request number to track the issue?

 

Thanks,

Vikash

lbendlin
Super User
Super User

If you have a Power BI Pro license you can raise a ticket directly. https://powerbi.microsoft.com/en-us/support/pro/ 

 

Anonymous
Not applicable

Hi Ibendlin,

Thank you for the suggestion, I have gone through the link and as i have Pro Account login with Pro account and submit a ticket for the same.

 

I have got also some service request number, The response time is approx 8 hours and it is going to be complete but did not get any notification through mail. Can we check this service request number to trace the ticket status?

 

Please suggest.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.