cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
New Member

Re: Embed for Oganization - Could not resolve cluster

Hello,

 

Can anyone please help me with this issue.

 

Nhan.

Highlighted
Anonymous
Not applicable

Re: Embed for Oganization - Could not resolve cluster

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.