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

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.

Reply
stevenamani
Advocate II
Advocate II

Paginated Embed Status 400 (Something went wrong)

I am attempting to embed a paginated report and getting a status 400 error. The report never loads. 

My code looks like:

 

function LoadReport(){
                var models = window['powerbi-client'].models;

                var format = getUrlParam('format','PDF');
                var  tokenType = models.TokenType.Aad; //for 403 errors, change this to Embed
                // You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
                var config = {
                   type:'report',tokenType:tokenType, accessToken: 'the token', embedUrl: 'https://app.powerbi.com/rdlEmbed?reportId=08dfff6f-5c6b-450c-af76-e910ca69f92e&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLVVTLUVBU1QyLXJlZGlyZWN0LmFuYWx5c2lzLndpbmRvd3MubmV0IiwiZW1iZWRGZWF0dXJlcyI6eyJtb2Rlcm5FbWJlZCI6ZmFsc2V9fQ%3d%3d&rp:SpecialtyName=Cardiovascular&rp:HospitalName=220031', id:'08dfff6f-5c6b-450c-af76-e910ca69f92e',permissions: models.Permissions.View
                };
 
                // Get a reference to the paginated embedded report HTML element
                var paginatedReportContainer = $('#paginatedReportContainer')[0];
 
                // Embed the paginated report and display it within the div container.
                var report = powerbi.embed(paginatedReportContainer, config);
            }

 

This returns the attached error in the browser.

Screen Shot 2020-05-07 at 2.23.21 PM.png 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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