Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I am trying to use power bi Javascript SDK to embed my report(import report with dataset setup and refresh using on-premise gateway), for instance use https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html
I got all Embed Token, URL and Report Id, but when i run the script, i get OpenConnectionError.
i.e.
> Loaded
> Json Object
{
"message": "Could not render a report visual titled Test",
"detailedMessage": "Can't display the visual.",
"errorCode": "OpenConnectionError",
"technicalDetails": {
"requestId": "7092a030-e0e3-8768-ef34-2646561b0763"
}
}
What could be probable reason and missings that i have done?
Thanks in advance.
@navaraj wrote:
I am trying to use power bi Javascript SDK to embed my report(import report with dataset setup and refresh using on-premise gateway), for instance use https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html
I got all Embed Token, URL and Report Id, but when i run the script, i get OpenConnectionError.
i.e.> Loaded
> Json Object
{
"message": "Could not render a report visual titled Test",
"detailedMessage": "Can't display the visual.",
"errorCode": "OpenConnectionError",
"technicalDetails": {
"requestId": "7092a030-e0e3-8768-ef34-2646561b0763"
}
}
What could be probable reason and missings that i have done?
Thanks in advance.
Does the official demo work for you? Do you encounter this issue by replacing the token/url/reportid with yourselves? If so, can you ensure that the embedded token(starts with H4sIxxxxxx)/url/reportid are all correct? Can you post the network details error in the browser develop mode(F12)?
I am trying to use power bi Javascript SDK to embed my report(import report with dataset setup and refresh using on-premise gateway), for instance use https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html
I got all Embed Token, URL and Report Id, but when i run the script, i get OpenConnectionError.
i.e.
> Loaded
> Json Object
{
"message": "Could not render a report visual titled Test",
"detailedMessage": "Can't display the visual.",
"errorCode": "OpenConnectionError",
"technicalDetails": {
"requestId": "7092a030-e0e3-8768-ef34-2646561b0763"
}
}
What could be probable reason and missings that i have done?
Thanks in advance.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |