This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 3 | |
| 3 | |
| 2 |