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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.