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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
indrajit
Regular Visitor

Unable to embed paginated reports

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.


first.jpegsecond.jpeg

The error response json is -
{
      "error": {
       "code": "PowerBINotAuthorizedException",
        "pbi.error": {
                 "code": "PowerBINotAuthorizedException",
                 "parameters": {},
                 "details": [],
                 "exceptionCulprit": 1
         }
     }
}

1 REPLY 1
Anonymous
Not applicable

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.

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors
Top Kudoed Authors