The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am calling "https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo" Api in my mvc application.
HttpWebRequest request = System.Net.HttpWebRequest.CreateHttp(string.Format("https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo", workspaceId,reportId1));
request.KeepAlive = true;
request.Method = "POST";
request.ContentType = "application/json";
streamWriter.Write(json);
}
var response = (HttpWebResponse)request.GetResponse();
Here i was getting access token like this,
Now I got the 403 forbidden error with no text.
Can anyone please help me to understand this why it is giving 403 error.
Are you using a Pro account or do you have Premium/Embedded capacity? Somebody else recently was having a similar issue.
You could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues
And if it is not there, then you could post it.
If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
we are on Power-Bi embedded capacity
Hi @Anonymous ,
A 403 Forbidden Error occurs when a web server forbids you from accessing the page or other resource that you're not allowed to access. Please refer the solutions in the following threads and check if it works for your scenario.
https://community.powerbi.com/t5/Report-Server/HTTP-403-Forbidden-error-on-API-call/m-p/843901
Best Regards
Rena
Hi,
I already gone through these links, but not got exact solution.
Now, for reports which do not have row level security applied I am successfully able to get PDF by calling next api
But when I input reports to which Row level security applied from Power bi desktop giving this error
{"error":{"code":"InvalidRequest","message":"Export report requires effective identity to be provided for the report's dataset"}}
Here I thought I should use embed token with roles and identities, so I passed the embed token in Authorization header. But for this now I am getting 403 error.
I can't reach to conclusion whether I stick with access token or I should use embed token both are giving two different errors.
Hi @Anonymous ,
Please check whether the 2nd post in the following thread can help you:
Best Regards
Rena
User | Count |
---|---|
36 | |
15 | |
12 | |
11 | |
9 |
User | Count |
---|---|
46 | |
44 | |
19 | |
18 | |
18 |