<?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 - HttpOperationException: Operation returned an invalid status code 'BadRequest' in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-HttpOperationException-Operation-returned-an/m-p/2869904#M39461</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/461970"&gt;@Lorenzo3944&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check whether the parameters like report id/dataset id in your code are correct.&lt;/P&gt;
&lt;P&gt;I think you can try to post a Rest API to generate a Embed token for the report with RLS.&lt;/P&gt;
&lt;P&gt;For refernece:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#example-of-generating-an-embed-token-for-a-paginated-report-which-has-a-power-bi-dataset-as-a-datasource.-the-id-of-the-dataset-must-be-specified-in-the-request.-the-report-and-dataset-can-each-have-its-own-identity" target="_blank" rel="nofollow noopener noreferrer"&gt;Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is a solved post with similar issue like yours, I think you may refer to it to learn more details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-send-invalid-status-code-Bad-Request-for-a-cached/m-p/612585" target="_blank" rel="noopener"&gt;Solved: Re: Power BI send “invalid status code 'Bad Reques... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 07:28:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-28T07:28:05Z</dc:date>
    <item>
      <title>Power BI Embed - HttpOperationException: Operation returned an invalid status code 'BadRequest'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-HttpOperationException-Operation-returned-an/m-p/2868383#M39456</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I'm trying to make Power BI Developer in a day but when I run my solution this HTTP exception happens&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5Nn7G.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/812091i8E5FB5935962CC94/image-size/large?v=v2&amp;amp;px=999" role="button" title="5Nn7G.png" alt="5Nn7G.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 14:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-HttpOperationException-Operation-returned-an/m-p/2868383#M39456</guid>
      <dc:creator>Lorenzo3944</dc:creator>
      <dc:date>2022-10-27T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embed - HttpOperationException: Operation returned an invalid status code 'BadRequest'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-HttpOperationException-Operation-returned-an/m-p/2869904#M39461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/461970"&gt;@Lorenzo3944&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check whether the parameters like report id/dataset id in your code are correct.&lt;/P&gt;
&lt;P&gt;I think you can try to post a Rest API to generate a Embed token for the report with RLS.&lt;/P&gt;
&lt;P&gt;For refernece:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#example-of-generating-an-embed-token-for-a-paginated-report-which-has-a-power-bi-dataset-as-a-datasource.-the-id-of-the-dataset-must-be-specified-in-the-request.-the-report-and-dataset-can-each-have-its-own-identity" target="_blank" rel="nofollow noopener noreferrer"&gt;Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is a solved post with similar issue like yours, I think you may refer to it to learn more details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-send-invalid-status-code-Bad-Request-for-a-cached/m-p/612585" target="_blank" rel="noopener"&gt;Solved: Re: Power BI send “invalid status code 'Bad Reques... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:28:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-HttpOperationException-Operation-returned-an/m-p/2869904#M39461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T07:28:05Z</dc:date>
    </item>
  </channel>
</rss>

