Forum Discussion
pelocruz
9 years agoRegular 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...
Eric_Zhang
Microsoft Employee
9 years agoStreaming 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.
<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>
- bellait1237 years agoNew Member
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?