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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
navaraj
Frequent Visitor

Power BI Embed report JavaScript

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.

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


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


@navaraj

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)?

 

Capture.PNG

navaraj
Frequent Visitor

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.