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
volyminhnhan
New Member

Embed for Oganization - Could not resolve cluster

HI,

 

I'm receiving an error below:

ERROR Error: Uncaught (in promise): Object: {"message":"LoadReportFailed","detailedMessage":"Fail to initialize - Could not resolve cluster","errorCode":"403","level":6,"technicalDetails":{"requestId":"c1bc94a6-42e8-3636-58c5-c8b52f6f4918"}}
    at A (reportEmbed.min.js:1)
    at A (reportEmbed.min.js:1)
    at reportEmbed.min.js:1
    at e.invokeTask (reportEmbed.min.js:1)
    at Object.onInvokeTask (reportEmbed.min.js:1)
    at e.invokeTask (reportEmbed.min.js:1)
    at t.runTask (reportEmbed.min.js:1)
    at g (reportEmbed.min.js:1)
    at t.invokeTask (reportEmbed.min.js:1)
    at i.useG.invoke (reportEmbed.min.js:1)

And the response from server is 403 for https://wabi-east-asia-a-primary-redirect.analysis.windows.net/metadata/cluster

Screen Shot 2019-04-14 at 5.34.39 PM.png

here is my code:

 

window.onload = function () {
 // Read embed application token from Model
    var accessToken = txtAccessToken;

    // Read embed URL from Model
    var embedUrl = "https://app.powerbi.com/reportEmbed";
    //var embedUrl = "https://app.powerbi.com/reportEmbed?groupId=2f0da47c-9575-42b2-9f63-e524c60fae8b";

    // Read dashboard Id from Model
    var embedReportId = "3c0f8978-b88e-4c6f-a771-ea4ad795c027";

    var embedDashboardId = "c7149d1b-3238-4068-bd72-9dac6d9aa214";

    // Get models. models contains enums that can be used.
    var models = window['powerbi-client'].models;
 
    var config = {
        type: 'report',
        tokenType: models.TokenType.Aad,
        accessToken: accessToken,
        embedUrl: embedUrl, 
        viewMode: models.ViewMode.View,
        permissions: models.Permissions.All,
        id: embedReportId,      
                 
    };

    // Get a reference to the embedded dashboard HTML element
    var reportContainer = $('#reportContainer')[0] ;

    // Embed the dashboard and display it within the div container.
    var report = powerbi.embed(reportContainer, config); 
 
} 

Please help

 

2 REPLIES 2
volyminhnhan
New Member

Hello,

 

Can anyone please help me with this issue.

 

Nhan.

Anonymous
Not applicable

I am facing the same issue, tripple check my toiken id, report id yet keep getting this error.... 😞

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.

Top Kudoed Authors