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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Anonymous
Not applicable

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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