Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all, I'm trying embed report on my Website. But sometimes iframe stucks on loading sometimes is working.
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.:)
Solved! Go to 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.
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
Thank for your reply @v-jiascu-msft
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.
That's great. Thanks for sharing.
Best Regards,
Dale
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |