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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-yetao1-msft
Community Support
Community Support

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors