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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.