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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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