<?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: PowerBI Embedded 404 Report not found with JS Sample Code in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1895255#M29907</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;According to your statement:
SP has Tenant Read and write access
SP is admin of the workspace
A Capacity of Power Bi embedded has been assigned to the workspace
The SP is in a security group and access to the APIs has been enable for SPs&lt;/LI-CODE&gt;
&lt;P&gt;I think there may be something wrong in your Service Principal setting.&lt;/P&gt;
&lt;P&gt;Firstly, app owns data has two kinds of authentication method: Master User and Service Principal.&lt;/P&gt;
&lt;P&gt;Here you use Service Principal. You don't need to give api permission in your Azure portal(Tenant Read and write access) to your app if you use this&amp;nbsp;authentication method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow this way to check your Service Principal:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;Embed Power BI content with service principal and an application secret&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When using a&amp;nbsp;&lt;/SPAN&gt;service principal&lt;SPAN&gt;, it's recommended to limit its access to the tenant settings using a&amp;nbsp;&lt;/SPAN&gt;security group&lt;SPAN&gt;.&lt;STRONG&gt;&amp;nbsp;Please select Sepcific security groups and add your security group into it&lt;/STRONG&gt;. Then make sure your service principal is the member or admin of the workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 677px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532048iE0F6E3A3D2C25FB3/image-dimensions/677x517?v=v2" width="677" height="517" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check the parameter you need:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 667px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532037iC04F7D2DDC38CB75/image-dimensions/667x391?v=v2" width="667" height="391" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more details about embed for customer:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js#prerequisites" target="_self"&gt;Tutorial: Embed Power BI content using a sample embed for your customers application&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rico Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 08:15:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-11T08:15:15Z</dc:date>
    <item>
      <title>PowerBI Embedded 404 Report not found with JS Sample Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890081#M29848</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;So I've been trying for the past few days to make the demo sample AppOwnsData in JS work with a custom report I published in a workspace.&lt;BR /&gt;&lt;BR /&gt;I'm using a Service Principal and I'm pretty confident I've setup everything correctly with our IT to make sure that the SP can connect and fetch reports :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SP has Tenant Read and write access&lt;/LI&gt;&lt;LI&gt;SP is admin of the workspace&lt;/LI&gt;&lt;LI&gt;A Capacity of Power Bi embedded has been assigned to the workspace&lt;/LI&gt;&lt;LI&gt;The SP is in a security group and access to the APIs has been enable for SPs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The token generation works well but whenever I'm fetching a report in the workspace I stumble upon this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "error": {
        "code": "PowerBIEntityNotFound",
        "pbi.error": {
            "code": "PowerBIEntityNotFound",
            "parameters": {},
            "details": [],
            "exceptionCulprit": 1
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running out of ideas on where to look at, I'm pretty sure the code samples should work out of the box and I should not have to fix and debug them by myself...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:33:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890081#M29848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-09T08:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded 404 Report not found with JS Sample Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890203#M29849</link>
      <description>&lt;P&gt;Just had the idea of getting all the reports in my group and this is the result, what am I missing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "@odata.context": "http://wabi-europe-north-b-redirect.analysis.windows.net/v1.0/myorg/groups/my-group-id/$metadata#reports",
    "value": []
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS : As a lot of MS websites I can't sign in using Firefox, I had to switch to Chrome to come here... Thank you guys.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890203#M29849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-09T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded 404 Report not found with JS Sample Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890417#M29851</link>
      <description>&lt;P&gt;Same for my capacities, I've created 2 and can't get them in /capacities, the only result is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"displayName"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Premium&amp;nbsp;Per&amp;nbsp;User&amp;nbsp;-&amp;nbsp;Reserved"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jun 2021 09:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1890417#M29851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-09T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded 404 Report not found with JS Sample Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1895255#M29907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;According to your statement:
SP has Tenant Read and write access
SP is admin of the workspace
A Capacity of Power Bi embedded has been assigned to the workspace
The SP is in a security group and access to the APIs has been enable for SPs&lt;/LI-CODE&gt;
&lt;P&gt;I think there may be something wrong in your Service Principal setting.&lt;/P&gt;
&lt;P&gt;Firstly, app owns data has two kinds of authentication method: Master User and Service Principal.&lt;/P&gt;
&lt;P&gt;Here you use Service Principal. You don't need to give api permission in your Azure portal(Tenant Read and write access) to your app if you use this&amp;nbsp;authentication method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow this way to check your Service Principal:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;Embed Power BI content with service principal and an application secret&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When using a&amp;nbsp;&lt;/SPAN&gt;service principal&lt;SPAN&gt;, it's recommended to limit its access to the tenant settings using a&amp;nbsp;&lt;/SPAN&gt;security group&lt;SPAN&gt;.&lt;STRONG&gt;&amp;nbsp;Please select Sepcific security groups and add your security group into it&lt;/STRONG&gt;. Then make sure your service principal is the member or admin of the workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 677px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532048iE0F6E3A3D2C25FB3/image-dimensions/677x517?v=v2" width="677" height="517" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check the parameter you need:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 667px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532037iC04F7D2DDC38CB75/image-dimensions/667x391?v=v2" width="667" height="391" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more details about embed for customer:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js#prerequisites" target="_self"&gt;Tutorial: Embed Power BI content using a sample embed for your customers application&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rico Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 08:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1895255#M29907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-11T08:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded 404 Report not found with JS Sample Code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1895305#M29908</link>
      <description>&lt;P&gt;I've followed this steps already, as mentioned in my first post. Yet it didn't work.&lt;BR /&gt;&lt;BR /&gt;I finally made it through by setting up Delegated permissions for Power BI to the SP like so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 577px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532076iD224C066EA637F61/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried hopeless to upload a new report and it finally showed up. But not the one previously created...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still can not see&amp;nbsp; the capacities through the API, but fortunately our admin can see it in the admin portal and gave the capacity ID so I managed to successfully apply the Capacity to the workspace through the API.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 08:23:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-404-Report-not-found-with-JS-Sample-Code/m-p/1895305#M29908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-11T08:23:17Z</dc:date>
    </item>
  </channel>
</rss>

