<?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: Error: {'error': {'code': 'PowerBINotAuthorizedException' when calling executeQueries API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-error-code-PowerBINotAuthorizedException-when-calling/m-p/4397562#M59354</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886435"&gt;@pennyhoho117&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it seems you got the error when calling&amp;nbsp;&lt;SPAN&gt;executeQueries API for one of datasets in the same workspace. One can work, the other one get &lt;EM&gt;PowerBINotAuthorizedException&lt;/EM&gt; error. The following thread is the one which has the similar problem as yours, hope its solution can help you solve the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Returns-quot-PowerBINotAuthorizedException-quot/m-p/2876779" target="_blank"&gt;Solved: PowerBI API Returns "PowerBINotAuthorizedException... - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.&lt;/P&gt;
&lt;P&gt;When this is done, I,ve experienced it can take up to 20-30 min before it works.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 06:17:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-06T06:17:48Z</dc:date>
    <item>
      <title>Error: {'error': {'code': 'PowerBINotAuthorizedException' when calling executeQueries API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-error-code-PowerBINotAuthorizedException-when-calling/m-p/4395593#M59339</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i am now stuck in a error when calling power bi API:&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/xx/executeQueries" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/xx/executeQueries&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;i have two datasets A and B in same workspace.&lt;/P&gt;&lt;P&gt;i call the API ,&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/xx/executeQueries" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/A/executeQueries&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/xx/executeQueries" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/B/executeQueries&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;with query:&amp;nbsp;"EVALUATE ROW(\"currentDate\", TODAY())" respectively.&lt;/P&gt;&lt;P&gt;one success but one failed with error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{'error': {'code': 'PowerBINotAuthorizedException', 'pbi.error': {'code': 'PowerBINotAuthorizedException', 'parameters': {}, 'details': [], 'exceptionCulprit': 1}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me some suggestions for the root cause?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-error-code-PowerBINotAuthorizedException-when-calling/m-p/4395593#M59339</guid>
      <dc:creator>pennyhoho117</dc:creator>
      <dc:date>2025-02-05T06:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error: {'error': {'code': 'PowerBINotAuthorizedException' when calling executeQueries API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-error-code-PowerBINotAuthorizedException-when-calling/m-p/4397562#M59354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/886435"&gt;@pennyhoho117&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it seems you got the error when calling&amp;nbsp;&lt;SPAN&gt;executeQueries API for one of datasets in the same workspace. One can work, the other one get &lt;EM&gt;PowerBINotAuthorizedException&lt;/EM&gt; error. The following thread is the one which has the similar problem as yours, hope its solution can help you solve the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Returns-quot-PowerBINotAuthorizedException-quot/m-p/2876779" target="_blank"&gt;Solved: PowerBI API Returns "PowerBINotAuthorizedException... - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.&lt;/P&gt;
&lt;P&gt;When this is done, I,ve experienced it can take up to 20-30 min before it works.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 06:17:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-error-code-PowerBINotAuthorizedException-when-calling/m-p/4397562#M59354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-06T06:17:48Z</dc:date>
    </item>
  </channel>
</rss>

