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
karthikeayan
New Member

Power BI Logo blinks in iFrame when integrating Power BI report into Web App

I have followed this doc "https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report-get-report" to integrate Power BI report into my web application.

 

All steps went fine, but finally in my iFrame, I am not seeing the Power Bi report, instead getting blinking Power BI icon.

 

Anyboy faced same kind of issue already?

2 ACCEPTED SOLUTIONS
Eric_Zhang
Employee
Employee


@karthikeayan wrote:

I have followed this doc "https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report-get-report" to integrate Power BI report into my web application.

 

All steps went fine, but finally in my iFrame, I am not seeing the Power Bi report, instead getting blinking Power BI icon.

 

Anyboy faced same kind of issue already?


@karthikeayan

What is the output in the browser console(F12, console tab)? I can embed a report without any issue, see a demo with below static HTML. Just replace the accesstoken and reportid with yours and save it in a .html file, then open it in Chrome.

 

<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: 'report',
    accessToken: 'your access Token here',
    embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=yourReportIDhere' 

}; 
 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embedNew($reportContainer.get(0), embedConfiguration);
 
}
</script>

<div id="reportContainer" ></div>

</html>

 

View solution in original post

okay, I found the issue. My javascript was screwed up.

 

I was getting 403 in my console window.

 

Now I fixed it!

View solution in original post

2 REPLIES 2
Eric_Zhang
Employee
Employee


@karthikeayan wrote:

I have followed this doc "https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-report-get-report" to integrate Power BI report into my web application.

 

All steps went fine, but finally in my iFrame, I am not seeing the Power Bi report, instead getting blinking Power BI icon.

 

Anyboy faced same kind of issue already?


@karthikeayan

What is the output in the browser console(F12, console tab)? I can embed a report without any issue, see a demo with below static HTML. Just replace the accesstoken and reportid with yours and save it in a .html file, then open it in Chrome.

 

<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: 'report',
    accessToken: 'your access Token here',
    embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=yourReportIDhere' 

}; 
 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embedNew($reportContainer.get(0), embedConfiguration);
 
}
</script>

<div id="reportContainer" ></div>

</html>

 

okay, I found the issue. My javascript was screwed up.

 

I was getting 403 in my console window.

 

Now I fixed it!

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.