<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Power BI Embedded not displaying visuals in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/193325#M6163</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've successfully connected to postman using my client id and token to generate an oauth2 header request. I am able to display json data from the power bi api. The returned scope shows that my permissions are:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Content.Create Dashboard.Read.All Data.Alter_Any Dataset.Read.All Dataset.ReadWrite.All Group.Read Group.Read.All Metadata.View_Any Report.Read.All Report.ReadWrite.All&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went on to configure an oauth2 request to the api in swift 3 (iOS). The connection was successful however when i try and access the embed url and load it into a webview the most i can display is a loading gif, or the default power bi dashboard loading icon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check this wasn't just an error in swift I decided to use the example at:&amp;nbsp;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/" target="_blank"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried displaying a dashboard, report and tile. In the dashboard and tile view nothing is displayed except a loading gif. However the interesting thing is that the log on the report displays that there is a permission problem&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.54.54.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45491i92BE997FA66B2EC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.54.54.png" alt="Screen Shot 2017-06-13 at 16.54.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is odd as the app has full permissions to everything:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.56.33.png" style="width: 550px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45492i1CB19C982B3A4CDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.56.33.png" alt="Screen Shot 2017-06-13 at 16.56.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So what is going on. Why can I not get any visuals to display using the power bi api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Update: when i ran the inspector on the report in the ios application i get this error in the web browser console:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.58.31.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45493i56F63D2621E72E1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.58.31.png" alt="Screen Shot 2017-06-13 at 16.58.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 16:00:09 GMT</pubDate>
    <dc:creator>Rich2852</dc:creator>
    <dc:date>2017-06-13T16:00:09Z</dc:date>
    <item>
      <title>Power BI Embedded not displaying visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/193325#M6163</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've successfully connected to postman using my client id and token to generate an oauth2 header request. I am able to display json data from the power bi api. The returned scope shows that my permissions are:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Content.Create Dashboard.Read.All Data.Alter_Any Dataset.Read.All Dataset.ReadWrite.All Group.Read Group.Read.All Metadata.View_Any Report.Read.All Report.ReadWrite.All&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went on to configure an oauth2 request to the api in swift 3 (iOS). The connection was successful however when i try and access the embed url and load it into a webview the most i can display is a loading gif, or the default power bi dashboard loading icon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check this wasn't just an error in swift I decided to use the example at:&amp;nbsp;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/" target="_blank"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried displaying a dashboard, report and tile. In the dashboard and tile view nothing is displayed except a loading gif. However the interesting thing is that the log on the report displays that there is a permission problem&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.54.54.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45491i92BE997FA66B2EC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.54.54.png" alt="Screen Shot 2017-06-13 at 16.54.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is odd as the app has full permissions to everything:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.56.33.png" style="width: 550px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45492i1CB19C982B3A4CDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.56.33.png" alt="Screen Shot 2017-06-13 at 16.56.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So what is going on. Why can I not get any visuals to display using the power bi api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Update: when i ran the inspector on the report in the ios application i get this error in the web browser console:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-06-13 at 16.58.31.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/45493i56F63D2621E72E1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-13 at 16.58.31.png" alt="Screen Shot 2017-06-13 at 16.58.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 16:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/193325#M6163</guid>
      <dc:creator>Rich2852</dc:creator>
      <dc:date>2017-06-13T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded not displaying visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/193333#M6165</link>
      <description>&lt;P&gt;As i am aware there is an issue with Power BI trial users being able to successfully share content as stated here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Sharing-Dashboard-never-load/m-p/191929#M26038" target="_blank"&gt;https://community.powerbi.com/t5/Service/Sharing-Dashboard-never-load/m-p/191929#M26038&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have purchased two Power BI pro users and removed the trials and the problem still exists&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 16:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/193333#M6165</guid>
      <dc:creator>Rich2852</dc:creator>
      <dc:date>2017-06-13T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded not displaying visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/194483#M6189</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've successfully connected to postman using my client id and token to generate an oauth2 header request. I am able to display json data from the power bi api. The returned scope shows that my permissions are:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Content.Create Dashboard.Read.All Data.Alter_Any Dataset.Read.All Dataset.ReadWrite.All Group.Read Group.Read.All Metadata.View_Any Report.Read.All Report.ReadWrite.All&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then went on to configure an oauth2 request to the api in swift 3 (iOS). The connection was successful however when i try and access the embed url and load it into a webview the most i can display is a loading gif, or the default power bi dashboard loading icon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check this wasn't just an error in swift I decided to use the example at:&amp;nbsp;&lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/" target="_blank"&gt;https://microsoft.github.io/PowerBI-JavaScript/demo/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I tried displaying a dashboard, report and tile. I&lt;FONT size="3"&gt;&lt;STRONG&gt;n the dashboard and tile view nothing is displayed except a loading gif&lt;/STRONG&gt;&lt;/FONT&gt;. However the interesting thing is that the log on the report displays that there is a permission problem&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;So when embedding a report, you got expected output? The demo link only works for embedding a report, otherwise you got error like&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"message": "LoadReportFailed",&lt;BR /&gt; "detailedMessage": "GetReportFailed",&lt;BR /&gt; "technicalDetails": {&lt;BR /&gt; "requestId": "c8810894-2e1f-ba18-b642-94aa3f731cf8"&lt;BR /&gt; },&lt;BR /&gt; "errorCode": "NotAuthorized"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To test embedding a dashboard or tile, you can use below sample. &amp;nbsp;Save those html code in a .html file and replace the IDs and tokens with your own. Then open it in Chrome. To Debug, press F12 in chrome and watch the "Console" tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;  
 

&amp;lt;script type="text/javascript"&amp;gt;
window.onload = function () {   

var embedConfiguration = {
    &lt;STRONG&gt;type: 'tile',&lt;/STRONG&gt;
    accessToken: 'yourTokenHere',
    id: '50de3c3a-2e8c-49bd-ada4-18d0b1e19415', // your tile id here
    embedUrl: 'https://app.powerbi.com/embed?dashboardId=YourDASHBORADIDHERE&amp;amp;tileId=50de3c3a-2e8c-49bd-ada4-18d0b1e19415',
	settings:{
	 
	}

}; 
 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
   

}
&amp;lt;/script&amp;gt;

&amp;lt;div id="reportContainer" powerbi-settings-nav-content-pane-enabled="false"   powerbi-settings-filter-pane-enabled="true"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/PRE&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

&amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
window.onload = function () {
 
var embedConfiguration = {
 &lt;STRONG&gt;   type: 'dashboard', //  dashboard&lt;/STRONG&gt;
    accessToken: 'YOURTOKENHERE',
//change report embed url to dashboard embed url
    embedUrl: 'https://app.powerbi.com/dashboardEmbed?dashboardId=fc9d5562-dc46-4624-b36a-862d6729b982'  
}; 

var $reportContainer = $('#dashboardContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
 
}
 
 
&amp;lt;/script&amp;gt; 
&amp;lt;div id="dashboardContainer"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;  &lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 06:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/194483#M6189</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-15T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded not displaying visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/195026#M6210</link>
      <description>&lt;P&gt;Thanks for the reply. After much much more testing I can get the reports and dashboards to show but only in web browsers. If I use the exact same code in ios Swift It will not render.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tile code however will render if both web browser and ios WKWebview.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tiles are nice but its reports and dashboards that I'm truly after. The dashboards just appear as a grey background and reports display " Cannot load content"&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/195026#M6210</guid>
      <dc:creator>Rich2852</dc:creator>
      <dc:date>2017-06-15T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded not displaying visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/195259#M6218</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the reply. After much much more testing I can get the reports and dashboards to show but only in web browsers. If I use the exact same code in &lt;STRONG&gt;ios Swift It will not render.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The tile code however will render if both web browser and ios WKWebview.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tiles are nice but its reports and dashboards that I'm truly after. The dashboards just appear as a grey background and reports display " Cannot load content"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Then I'd doubt it might be the compatible issue. When viewing dashboards/reports in mobile device, use &lt;A href="https://powerbi.microsoft.com/en-us/mobile/" target="_self"&gt;Power BI Mobile&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 01:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-not-displaying-visuals/m-p/195259#M6218</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-16T01:17:44Z</dc:date>
    </item>
  </channel>
</rss>

