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.
Hello,
We are having a problem trying to embed Power BI reports residing in an specific Workspace (a O365 group).
We managed to successfuly embed reports from other workspaces without any issues. I had a look at the permissions of the workspace and I do not see anything different. In fact it has the same members as the other workspaces, and the account used to authenticate the application is the admin for all those workspaces.
The error we get is the following:
2017-10-12 16:07:44 +00:00 [Error] 0HL8HHCUA5TUI-Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware: An unhandled exception has occurred: Operation returned an invalid status code 'Forbidden'
Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'
at Microsoft.PowerBI.Api.V2.Reports.<GenerateTokenInGroupWithHttpMessagesAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Api.V2.ReportsExtensions.<GenerateTokenInGroupAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Api.V2.ReportsExtensions.GenerateTokenInGroup(IReports operations, String groupId, String reportKey, GenerateTokenRequest requestParameters)
Any ideas on what the problem might be?
Regards,
P.
try { //generatetoken code here } catch (HttpOperationException ex) { //Bad Request var content = ex.Response.Content; Console.WriteLine(content); }
Hi @Eric_Zhang
I will get our engineers to look the points you have raised.
As for the admin portal settings, it is all set to the defaults.
Regards,
P.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |