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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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