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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
bboy81905
Frequent Visitor

PowerBI Embedded report stuck on loading sometimes

Hi all, I'm trying embed report on my Website. But sometimes iframe stucks on loading sometimes is working.BI-loading.PNG

 

 

 

 

 

 BI-loading2.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Below is my config :

var configR_desktop = {
        type: 'report',
        tokenType: models.TokenType.Embed,
        accessToken: TokenReport,
        embedUrl: UrlReport,
        id: embedReportdId,
        pageName: 'ReportSection',
        settings: {
            filterPaneEnabled: false,
            navContentPaneEnabled: false,
            localeSettings: {
                language: "en"
            },
           background: models.BackgroundType.Transparent
            
        }
    };

 And I need to refresh the website until embedded report working,

Everybody knows What's wrong with that? I would appreciate.:)  

1 ACCEPTED SOLUTION

I fixed this problem. It's async problem.

In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network. Smiley Happy

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @bboy81905,

 

1. If it's possible the token expires, how did you get token?

2. Were there any error messages in the browser console?

Your config looks good.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank for your reply @v-jiascu-msft

 

  • First, I think it's impossible the token expires. Because website will get token when the server starting, the server will use Power BI REST APIs to generate Token. In this case, the iframe of an embedded report will present the correct report but sometimes will keep loading. And then I refresh website, the report shows up again, but sometimes also stuck on loading. It's very wired.
  • Second, the iframe of an embedded report stuck on loading, there is no error in the browser console!!

 

 

I fixed this problem. It's async problem.

In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network. Smiley Happy

That's great. Thanks for sharing.

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi - 

 

We're also trying to achieve the embed using JavaScript but somehow it is not working.

 

Can you please share your full JavaScript code with config? Didn't it require to generate a new token when it expires?

 

Much appreciated. 

 

Thank you

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors