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
hhx
Regular Visitor

Fail to initialize - Could not resolve cluster

 

 

detailedMessage : "Fail to initialize - Could not resolve cluster" errorCode : "403" level : 6 message : "LoadReportFailed" technicalDetails : errorInfo : undefined requestId : "9110a67e-6928-4579-b21e-469a0901b2db"

 

 

I used Asp.net core + angular9

when  i embed a report in my website some error happend

angular code ( installed powerbi-client)

 

 

import * as powerbiClient from 'powerbi-client';
import { models } from 'powerbi-client';

embedPowerBIReport(): void {
        this._serviceProxy.getReport()
        .subscribe(res=>{


            let reportContainer = <HTMLElement>document.getElementById("pbi-container");
            var powerbi= new powerbiClient.service.Service(powerbiClient.factories.hpmFactory,powerbiClient.factories.wpmpFactory,powerbiClient.factories.routerFactory);
            var embedConfig = {
                type: 'report',
                // id: res.embedReport[0].reportId,
                tokeType: models.TokenType.Embed,
                embedUrl: res.embedReport[0].embedUrl,
                accessToken:res.embedToken.token,
                // permissions: models.Permissions.All,
                // viewMode: models.ViewMode.View,
                // settings: {
                //   filterPaneEnabled: false,
                //   navContentPaneEnabled: false
                // }
              };
             var report =  powerbi.embed(reportContainer, embedConfig);
             report.on("loaded",function(){
                alert("loaded");
             });

             report.on("error",function(event){
                var errorMsg = event.detail;
                console.log(errorMsg);
                return;
             });
        })
    }

 

 

asp.net core  the code is copy from (https://github.com/Microsoft/PowerBI-Developer-Samples) .net core version

 

 

 [HttpGet]
        public EmbedParams GetReport()
        {
            

            EmbedParams embedParams = pbiEmbedService.GetEmbedParams(new Guid(powerBI.Value.WorkspaceId), new Guid(powerBI.Value.ReportId));
            return embedParams;
        }

 

 

 and i can  get accessToken from this method

0 REPLIES 0

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.