Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am trying to embed to embed PowerBi reports by Apps owns data concept (embed for your customers) using Service Principal and am also using service principal profiles for multitenancy. I did not see any issues and was successfully able to embed non-paginated pbix reports. However, I am facing issues trying to embed paginated rdl reports. Even a sample Microsoft paginated rdl report is not working. I have configured Gen2 A1 SKU and assigned to the target workspace. To get the Power BI Report Embed URL and Embed token, I am using Get Report in Group and Reports GenerateToken In Group Power BI Rest Api calls. I am not sending datasetId as a parameter in the calls. I am able to generate embed token but the Power BI React component (powerbi-client-react) is unable to embed paginated reports (even the sample Microsoft paginated report). Bootstrapping also is not being used while embedding with Power BI React component. The error seen is in the modelsAndExploration call that the react component makes for which a 401 Unauthorized status code is returned with PowerBINotAuthorizedException. The same call works fine for non-paginated reports. Attaching the screenshots for the same (some IDs, token etc have been blurred but all params are non-empty in the actual request). I would appreciate any help on this.
The error response json is -
{
"error": {
"code": "PowerBINotAuthorizedException",
"pbi.error": {
"code": "PowerBINotAuthorizedException",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}
Hi @indrajit
I found a similar case , you can refer to it and hope it can help you !
Solved: Unauthorized 401 error while embedding power PBI r... - Microsoft Fabric Community
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |