<?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 Can't display a new report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228247#M7216</link>
    <description>&lt;P&gt;Hi everebody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have need some help, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create a report with a Dataset selected by the user. For this, I use the API Rest Power BI. I get the list of datasets, and I display a form, in this form there are the name and the id of dataset. When a dataset is selected, and validate, a new IFrame appear with the report. But my problem is the next: when the IFrame Appear I have a message who tell me : "This content is not available". I haven' any error message in the console, and my code is exalty as the code of microsoft example:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-create-report-from-dataset" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-create-report-from-dataset&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of the blow, I would like to know, the reasons why I might have this problem. Maybe I miss an important step for displaying this report in create mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you can see some screen captures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API_error.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53955i1DDA0ED2967D8367/image-size/large?v=v2&amp;amp;px=999" role="button" title="API_error.PNG" alt="API_error.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fonction_create.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53956i8FE29781473D2139/image-size/large?v=v2&amp;amp;px=999" role="button" title="fonction_create.PNG" alt="fonction_create.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 09:12:17 GMT</pubDate>
    <dc:creator>SarahQUL</dc:creator>
    <dc:date>2017-08-09T09:12:17Z</dc:date>
    <item>
      <title>Can't display a new report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228247#M7216</link>
      <description>&lt;P&gt;Hi everebody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have need some help, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create a report with a Dataset selected by the user. For this, I use the API Rest Power BI. I get the list of datasets, and I display a form, in this form there are the name and the id of dataset. When a dataset is selected, and validate, a new IFrame appear with the report. But my problem is the next: when the IFrame Appear I have a message who tell me : "This content is not available". I haven' any error message in the console, and my code is exalty as the code of microsoft example:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-create-report-from-dataset" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-create-report-from-dataset&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of the blow, I would like to know, the reasons why I might have this problem. Maybe I miss an important step for displaying this report in create mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you can see some screen captures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API_error.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53955i1DDA0ED2967D8367/image-size/large?v=v2&amp;amp;px=999" role="button" title="API_error.PNG" alt="API_error.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fonction_create.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53956i8FE29781473D2139/image-size/large?v=v2&amp;amp;px=999" role="button" title="fonction_create.PNG" alt="fonction_create.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:12:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228247#M7216</guid>
      <dc:creator>SarahQUL</dc:creator>
      <dc:date>2017-08-09T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't display a new report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228967#M7218</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/33367"&gt;@SarahQUL&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Embedding a dataset to create a report works in my test. I can create and save a report. In your case, please try to debug the accesstoken used to embed a dataset and decode it at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://jwt.io/" target="_self"&gt;https://jwt.io/&lt;/A&gt;. You'll find the workspaceid, datasetid and scopes, please ensure that &amp;nbsp;all information is correct and scope is "Dataset.Read Workspace.Report.Create"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 489px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/54147i43CF0FD90726F5B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;var embedToken= PowerBIToken.CreateReportEmbedTokenForCreation(this.workspaceCollection, workspaceId, datasetid, null, null, "Dataset.Read Workspace.Report.Create");
AccessToken = embedToken.Generate(this.accessKey)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A static html testing demo FYI.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="../jquery.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script src="../powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;
 
&amp;lt;script type="text/javascript"&amp;gt;
window.onload = function () {   
// Read embed application token from textbox
var txtAccessToken = '&lt;STRONG&gt;accessToken&lt;/STRONG&gt;';
 
// Read embed URL from textbox
var txtEmbedUrl = 'https://embedded.powerbi.com/appTokenReportEmbed';
 
// Read dataset Id from textbox
var txtEmbedDatasetId = '&lt;STRONG&gt;datasetID&lt;/STRONG&gt;';
 
// Embed create configuration used to describe the what and how to create report.
// This object is used when calling powerbi.createReport.
var embedCreateConfiguration = {
    accessToken: txtAccessToken,
    embedUrl: txtEmbedUrl,
    datasetId: txtEmbedDatasetId,
};
 
// Grab the reference to the div HTML element that will host the report
var reportContainer = $('#reportContainer')[0];
 
// Create report
var report = powerbi.createReport(reportContainer, embedCreateConfiguration);  
}
&amp;lt;/script&amp;gt;

&amp;lt;div id="reportContainer" &amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228967#M7218</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-10T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't display a new report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228986#M7219</link>
      <description>&lt;P&gt;My token Access is false, I try to change that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sarah.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 07:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-display-a-new-report/m-p/228986#M7219</guid>
      <dc:creator>SarahQUL</dc:creator>
      <dc:date>2017-08-10T07:58:42Z</dc:date>
    </item>
  </channel>
</rss>

