cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
pelocruz Frequent Visitor
Frequent Visitor

Error refreshing embedded powerbi dashboard with live stream data

 

Hi,

I have a stream analytics job that receives data from the IOT Hub and sends the data to Power BI. I have a dashboard that visualizes the live data, where the tiles get refreshed automatically as data is received.

I have embedded the dashboard in an Azure web app using the Power BI Javascript API. I can see the embedded dashboard ni the web app, but the tiles are not refreshed as data is received. I can see that the Power BI makes a request to: https://wabi-north-europe-redirect.analysis.windows.net/powerbi/refresh/subscribe which is cancelled after 1 minute since there is no response. This has worked before (last time I saw this working was about 2 weeks ago). Does anyone have an idea of what could be wrong?

PowerBIDashboardError1.PNG

2 REPLIES 2
Moderator Eric_Zhang
Moderator

Re: Error refreshing embedded powerbi dashboard with live stream data

@pelocruz

Streaming dataset tiles in an embedded dashboard load data fine in my test. Can you try again? Maybe it was a short period site outage. If the error still persists, I'd suggest you submit a support ticket, with the canceled request details.

Capture.PNG

 

<html>

  <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"></script>

<script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"></script>

<script type="text/javascript">
window.onload = function () {
 
var embedConfiguration = {
    type: 'dashboard', // change report to dashboard
    accessToken: 'yourTokenHere',
//change report embed url to dashboard embed url
    embedUrl: 'https://app.powerbi.com/dashboardEmbed?dashboardId=739082ea-c354xxxxxx'  
}; 

var $reportContainer = $('#dashboardContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
 
}
 
 
</script> 
<div id="dashboardContainer"></div>

</html>  

 

bellait123 Frequent Visitor
Frequent Visitor

Re: Error refreshing embedded powerbi dashboard with live stream data

Hi,

I am getting the same error.

 

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource athttps://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe. (Reason: CORS request did not succeed).

 

How did you solve this issue?

 

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Kudoed Authors (Last 30 Days)