<?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 Re: power bi embed 'this content is not available' in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67463#M2186</link>
    <description>&lt;P&gt;See here for the required claims: &lt;A href="https://www.npmjs.com/package/powerbi-api" target="_blank"&gt;https://www.npmjs.com/package/powerbi-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you use one of the Power BI SDKs to generate the JWT though.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 09:05:25 GMT</pubDate>
    <dc:creator>ekeijl</dc:creator>
    <dc:date>2016-09-12T09:05:25Z</dc:date>
    <item>
      <title>power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/65738#M2130</link>
      <description>&lt;P&gt;I've tried to work through this example and many others but I'm getting no content availabe in the iframe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://azure.microsoft.com/en-gb/documentation/articles/power-bi-embedded-iframe/" target="_blank"&gt;https://azure.microsoft.com/en-gb/documentation/articles/power-bi-embedded-iframe/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also using the angular example from git hub and swapped out the api for my own details. No luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can view my reports via the power bi web app without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code I'm using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created the JWT and signed it using the JWT website without expiry date (that should work, should it not?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE html&amp;gt;
    &amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
      &amp;lt;meta charset="utf-8" /&amp;gt;
      &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
      &amp;lt;title&amp;gt;Test page&amp;lt;/title&amp;gt;
      &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
      &amp;lt;button id="btnView"&amp;gt;View Report !&amp;lt;/button&amp;gt;
      &amp;lt;div id="divView"&amp;gt;
        &amp;lt;iframe id="ifrTile" width="100%" height="400"&amp;gt;&amp;lt;/iframe&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;script&amp;gt;
        (function () {
          document.getElementById('btnView').onclick = function() {
            var iframe = document.getElementById('ifrTile');
            iframe.src='https://embedded.powerbi.com/appTokenReportEmbed?reportId=d3d8c45f-17bf-4f4c-bb4f-0affe770daba';
            iframe.onload = function() {
              var msgJson = {
                action: "loadReport",
                accessToken: "eyJhbGciOiJIUzI1NiIsInR5c...blah,blah,blah...TAaQrly9mNc0-PJZMpKQk",
                height: 500,
                width: 722
              };
              var msgTxt = JSON.stringify(msgJson);
              iframe.contentWindow.postMessage(msgTxt, "*");
            };
          };
        }());
      &amp;lt;/script&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 15:54:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/65738#M2130</guid>
      <dc:creator>mangopop</dc:creator>
      <dc:date>2016-09-06T15:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/66565#M2148</link>
      <description>&lt;P&gt;Does the data source of your report use DirectQuery? In that case your might have forgotten this step:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://azure.microsoft.com/en-gb/documentation/articles/power-bi-embedded-iframe/#data-source-connectivity-and-multi-tenancy-of-data" target="_blank"&gt;https://azure.microsoft.com/en-gb/documentation/articles/power-bi-embedded-iframe/#data-source-connectivity-and-multi-tenancy-of-data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to tell PowerBI Embedded how to connect to your data source (i.e. credentials), this is not stored in the PBIX file.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 11:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/66565#M2148</guid>
      <dc:creator>ekeijl</dc:creator>
      <dc:date>2016-09-08T11:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67456#M2181</link>
      <description>&lt;P&gt;Thanks for the reply. This was created with the import option, so I didn't add the connection details. I would be helpful if there were some more informative error messages, as it is I'm a bit stuck.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67456#M2181</guid>
      <dc:creator>mangopop</dc:creator>
      <dc:date>2016-09-12T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67457#M2182</link>
      <description>&lt;P&gt;I am getting this error message&amp;nbsp;GET &lt;A href="https://wabi-west-europe-redirect.analysis.windows.net/metadata/cluster" target="_blank"&gt;https://wabi-west-europe-redirect.analysis.windows.net/metadata/cluster&lt;/A&gt; 403 (Forbidden) Perhaps it's the created of the JWT that is causing me trouble.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:46:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67457#M2182</guid>
      <dc:creator>mangopop</dc:creator>
      <dc:date>2016-09-12T08:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67458#M2183</link>
      <description>&lt;P&gt;Here's an exampleof the JWT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`{&lt;BR /&gt;"wid": "c13d0a99-****-****-9d76-2a644847ddde",&lt;BR /&gt;"rid": "d3d8c45f-****-****-bb4f-0affe770daba",&lt;BR /&gt;"iss": "PowerBISDK",&lt;BR /&gt;"ver": "0.2.0",&lt;BR /&gt;"aud": "&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;",&lt;BR /&gt;"wcn": "myWCN",&lt;BR /&gt;"type":"embed"&lt;BR /&gt;}`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's all I should need to create the access token&amp;nbsp;right?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67458#M2183</guid>
      <dc:creator>mangopop</dc:creator>
      <dc:date>2016-09-12T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67462#M2185</link>
      <description>&lt;P&gt;I recommend that you use one of the SDKs that Microsoft provides to generate the JWT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of JWT claims can be found here, documentation on this is hard to find though: &lt;A href="https://www.npmjs.com/package/powerbi-api" target="_blank"&gt;https://www.npmjs.com/package/powerbi-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you need to include the "nbp" (current timestamp?) and "exp" (expiration timestamp) claims as well.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:02:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67462#M2185</guid>
      <dc:creator>ekeijl</dc:creator>
      <dc:date>2016-09-12T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67463#M2186</link>
      <description>&lt;P&gt;See here for the required claims: &lt;A href="https://www.npmjs.com/package/powerbi-api" target="_blank"&gt;https://www.npmjs.com/package/powerbi-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you use one of the Power BI SDKs to generate the JWT though.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67463#M2186</guid>
      <dc:creator>ekeijl</dc:creator>
      <dc:date>2016-09-12T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67468#M2188</link>
      <description>&lt;P&gt;(My posts keep getting auto-deleted, maybe I'm not allowed to link to stackoverflow? :/)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayway, here are the required claims:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Required Claims

    ver: 0.2.0
    wcn: {WorkspaceCollectionName}
    wid: {WorkspaceId}
    rid: {ReportId}
    aud: https://analysis.windows.net/powerbi/api
    nbp: Token valid not before in Unix EPOCH time
    exp: Token expiration in Unix EPOCH time&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67468#M2188</guid>
      <dc:creator>ekeijl</dc:creator>
      <dc:date>2016-09-12T09:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67473#M2189</link>
      <description>&lt;P&gt;You are a legend, the docs say optional but they aren't!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(It's nbf not nbp!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 10:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/67473#M2189</guid>
      <dc:creator>mangopop</dc:creator>
      <dc:date>2016-09-12T10:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/75400#M2568</link>
      <description>&lt;P&gt;It was working for me till today but it stopped working all of a sudden for some of my clients -- can you please share what you think what might have gone wrong&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 17:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/75400#M2568</guid>
      <dc:creator>dhirujadhav</dc:creator>
      <dc:date>2016-10-05T17:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embed 'this content is not available'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/75401#M2569</link>
      <description>&lt;P&gt;It was working for me till today but it stopped working all of a sudden for some of my clients -- can you please share what you think what might have gone wrong&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 17:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-embed-this-content-is-not-available/m-p/75401#M2569</guid>
      <dc:creator>dhirujadhav</dc:creator>
      <dc:date>2016-10-05T17:35:33Z</dc:date>
    </item>
  </channel>
</rss>

