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
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
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.