<?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 InvalidRequest: Resource access type View unsupported for Reports in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2679721#M37714</link>
    <description>&lt;P&gt;We have a website that displays embedded PowerBI reports.&amp;nbsp; The website, the code that drives it, and the reports themselves have not changed in months.&amp;nbsp; This week, the PowerBI API call to generate our embed tokens started refusing to give it to us, instead returning this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client error: `POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/&lt;/A&gt;&amp;lt;our-id&amp;gt;/reports//GenerateToken` resulted in a `400 Bad Request` response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InvalidRequest: Resource access type View unsupported for Reports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't find anything online about this error.&amp;nbsp; What could be suddently causing this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 19:44:59 GMT</pubDate>
    <dc:creator>bhayden</dc:creator>
    <dc:date>2022-08-03T19:44:59Z</dc:date>
    <item>
      <title>InvalidRequest: Resource access type View unsupported for Reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2679721#M37714</link>
      <description>&lt;P&gt;We have a website that displays embedded PowerBI reports.&amp;nbsp; The website, the code that drives it, and the reports themselves have not changed in months.&amp;nbsp; This week, the PowerBI API call to generate our embed tokens started refusing to give it to us, instead returning this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client error: `POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/&lt;/A&gt;&amp;lt;our-id&amp;gt;/reports//GenerateToken` resulted in a `400 Bad Request` response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InvalidRequest: Resource access type View unsupported for Reports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't find anything online about this error.&amp;nbsp; What could be suddently causing this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2679721#M37714</guid>
      <dc:creator>bhayden</dc:creator>
      <dc:date>2022-08-03T19:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: InvalidRequest: Resource access type View unsupported for Reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2680597#M37721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what have changed in Power BI side, but can you please explain why you call this specific endpoint? According to the documentation it should only be used when generating an embed token to be used for creating reports&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/reports-generate-token-for-create-in-group" target="_blank"&gt;Embed Token - Reports GenerateTokenForCreateInGroup - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That's probably why you get an error when you specify "accessLevel"="view" in the request. I believe only "Create" is supported.&lt;/P&gt;&lt;P&gt;If you're just embedding existing report\s you should use a different endpoint like this one&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token" target="_blank"&gt;Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2680597#M37721</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-08-04T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: InvalidRequest: Resource access type View unsupported for Reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2682519#M37731</link>
      <description>&lt;P&gt;It turns out the endpoint we are using is fine.&amp;nbsp; Microsoft themselves have example code using this endpoint for View operations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem ended up being a very subtle change on Microsoft's side where a json field name was changed from "Name" to "name", which broke a case-sensitive field lookup in our code.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/InvalidRequest-Resource-access-type-View-unsupported-for-Reports/m-p/2682519#M37731</guid>
      <dc:creator>bhayden</dc:creator>
      <dc:date>2022-08-04T18:20:17Z</dc:date>
    </item>
  </channel>
</rss>

