<?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 Power BI REST API returns PowerBIEntityNotFound for dataset with upstream in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5004110#M64491</link>
    <description>&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;I have two datasets, &lt;STRONG&gt;dataset A&lt;/STRONG&gt; and &lt;STRONG&gt;dataset B&lt;/STRONG&gt;, both in the same workspace. &lt;STRONG&gt;Dataset B&lt;/STRONG&gt; uses &lt;STRONG&gt;dataset A&lt;/STRONG&gt; as an upstream data source.&lt;/P&gt;&lt;P&gt;I can execute queries via the API on &lt;STRONG&gt;dataset A&lt;/STRONG&gt;, using the service principal (admin) for authentication.&lt;/P&gt;&lt;P&gt;However, when I try to execute queries on &lt;STRONG&gt;dataset B&lt;/STRONG&gt;, Power BI returns the following error:&lt;/P&gt;&lt;PRE&gt;{
  "error": {
    "code": "PowerBIEntityNotFound",
    "pbi.error": {
      "code": "PowerBIEntityNotFound",
      "parameters": {},
      "details": [
        {
          "code": "DetailsMessage",
          "detail": {
            "type": 1,
            "value": "You cannot query the dataset 'c3fa76d7-4dea-4999-bf27-***********' by using the REST API because the dataset was not found or you do not have the required permissions. Please contact a workspace admin or a dataset owner to grant you the required permissions. See https://go.microsoft.com/fwlink/?linkid=2190204 for more info on required permissions."
          }
        }
      ]
    }
  }
}&lt;/PRE&gt;&lt;P&gt;All the required options listed in the documentation for this endpoint are already enabled in the tenant where they are located, and the service principal used for authentication is already an admin of the workspace that contains both datasets.&lt;/P&gt;&lt;P&gt;I ran some tests and I can execute queries on &lt;STRONG&gt;dataset B&lt;/STRONG&gt; via the XMLA endpoint using the same service principal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dataset B Scan:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                {
                    "id": "c3fa76d7-4dea-4999-bf27-***********",
                    "name": "Relatório  Service Now - Refactory",
                    "configuredBy": "user@email.com",
                    "configuredById": "146d0bbd-04d2-479b-b01c-**********",
                    "isEffectiveIdentityRequired": false,
                    "isEffectiveIdentityRolesRequired": false,
                    "targetStorageMode": "Abf",
                    "createdDate": "2026-02-03T14:06:48.86",
                    "contentProviderType": "PbixInCompositeMode",
                    "upstreamDatasets": [
                        {
                            "targetDatasetId": "25806921-b100-447e-b447-***********",
                            "groupId": "GroupID"
                        }
                    ],
                    "tags": []
                }&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Dataset A Scan:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                {
                    "id": "25806921-b100-447e-b447-***********",
                    "name": "Conjunto de dados Service Now - Refactory",
                    "configuredBy": "user@email.com",
                    "configuredById": "146d0bbd-04d2-479b-b01c-**********",
                    "isEffectiveIdentityRequired": false,
                    "isEffectiveIdentityRolesRequired": false,
                    "targetStorageMode": "Abf",
                    "createdDate": "2026-01-14T14:56:23.85",
                    "contentProviderType": "PbixInImportMode",
                    "datasourceUsages": [
                        {
                            "datasourceInstanceId": "b29ef488-aa00-4fed-8ce5-************"
                        }
                    ],
                    "tags": []
                },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;STRONG&gt;Lineage:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msantos5_0-1770730564930.png" style="width: 839px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1325660iA9CC54169BD94DE2/image-dimensions/839x344?v=v2" width="839" height="344" role="button" title="msantos5_0-1770730564930.png" alt="msantos5_0-1770730564930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance for any help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 13:46:46 GMT</pubDate>
    <dc:creator>msantos5</dc:creator>
    <dc:date>2026-02-10T13:46:46Z</dc:date>
    <item>
      <title>Power BI REST API returns PowerBIEntityNotFound for dataset with upstream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5004110#M64491</link>
      <description>&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;I have two datasets, &lt;STRONG&gt;dataset A&lt;/STRONG&gt; and &lt;STRONG&gt;dataset B&lt;/STRONG&gt;, both in the same workspace. &lt;STRONG&gt;Dataset B&lt;/STRONG&gt; uses &lt;STRONG&gt;dataset A&lt;/STRONG&gt; as an upstream data source.&lt;/P&gt;&lt;P&gt;I can execute queries via the API on &lt;STRONG&gt;dataset A&lt;/STRONG&gt;, using the service principal (admin) for authentication.&lt;/P&gt;&lt;P&gt;However, when I try to execute queries on &lt;STRONG&gt;dataset B&lt;/STRONG&gt;, Power BI returns the following error:&lt;/P&gt;&lt;PRE&gt;{
  "error": {
    "code": "PowerBIEntityNotFound",
    "pbi.error": {
      "code": "PowerBIEntityNotFound",
      "parameters": {},
      "details": [
        {
          "code": "DetailsMessage",
          "detail": {
            "type": 1,
            "value": "You cannot query the dataset 'c3fa76d7-4dea-4999-bf27-***********' by using the REST API because the dataset was not found or you do not have the required permissions. Please contact a workspace admin or a dataset owner to grant you the required permissions. See https://go.microsoft.com/fwlink/?linkid=2190204 for more info on required permissions."
          }
        }
      ]
    }
  }
}&lt;/PRE&gt;&lt;P&gt;All the required options listed in the documentation for this endpoint are already enabled in the tenant where they are located, and the service principal used for authentication is already an admin of the workspace that contains both datasets.&lt;/P&gt;&lt;P&gt;I ran some tests and I can execute queries on &lt;STRONG&gt;dataset B&lt;/STRONG&gt; via the XMLA endpoint using the same service principal.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dataset B Scan:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                {
                    "id": "c3fa76d7-4dea-4999-bf27-***********",
                    "name": "Relatório  Service Now - Refactory",
                    "configuredBy": "user@email.com",
                    "configuredById": "146d0bbd-04d2-479b-b01c-**********",
                    "isEffectiveIdentityRequired": false,
                    "isEffectiveIdentityRolesRequired": false,
                    "targetStorageMode": "Abf",
                    "createdDate": "2026-02-03T14:06:48.86",
                    "contentProviderType": "PbixInCompositeMode",
                    "upstreamDatasets": [
                        {
                            "targetDatasetId": "25806921-b100-447e-b447-***********",
                            "groupId": "GroupID"
                        }
                    ],
                    "tags": []
                }&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Dataset A Scan:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                {
                    "id": "25806921-b100-447e-b447-***********",
                    "name": "Conjunto de dados Service Now - Refactory",
                    "configuredBy": "user@email.com",
                    "configuredById": "146d0bbd-04d2-479b-b01c-**********",
                    "isEffectiveIdentityRequired": false,
                    "isEffectiveIdentityRolesRequired": false,
                    "targetStorageMode": "Abf",
                    "createdDate": "2026-01-14T14:56:23.85",
                    "contentProviderType": "PbixInImportMode",
                    "datasourceUsages": [
                        {
                            "datasourceInstanceId": "b29ef488-aa00-4fed-8ce5-************"
                        }
                    ],
                    "tags": []
                },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;STRONG&gt;Lineage:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msantos5_0-1770730564930.png" style="width: 839px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1325660iA9CC54169BD94DE2/image-dimensions/839x344?v=v2" width="839" height="344" role="button" title="msantos5_0-1770730564930.png" alt="msantos5_0-1770730564930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance for any help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:46:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5004110#M64491</guid>
      <dc:creator>msantos5</dc:creator>
      <dc:date>2026-02-10T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API returns PowerBIEntityNotFound for dataset with upstream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5004869#M64494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What you’re hitting is not a permissions problem — it’s a limitation of the ExecuteQueries REST API with composite / upstream models.&lt;/P&gt;&lt;P&gt;Your Dataset B is PbixInCompositeMode and has upstreamDatasets (i.e., it’s a composite model that depends on another semantic model). In these scenarios, the ExecuteQueries REST endpoint can fail with “PowerBIEntityNotFound” even when the dataset exists and the caller is a workspace admin. This aligns with other reported cases where ExecuteQueries works for import models, but fails once a model becomes composite / DirectQuery over another semantic model.&lt;/P&gt;&lt;P&gt;A few important points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The ExecuteQueries API has several limitations (and service principal scenarios have additional limitations such as RLS/SSO restrictions).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Composite models introduce extra security/lineage requirements (permissions across all participating models) and, in practice, REST ExecuteQueries is not reliable/unsupported for composite models even though XMLA works.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Recommended workarounds:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Query Dataset A instead (the upstream/import model) via ExecuteQueries, since that’s the part the REST API supports reliably.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Continue using the XMLA endpoint for Dataset B (since you confirmed it works) — XMLA is generally the more robust option for programmatic querying at scale.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If you must use REST ExecuteQueries, consider restructuring so Dataset B is not composite (i.e., avoid “dataset over dataset” / upstream dependency).&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So, bottom line: Dataset B being a composite model with upstream datasets is the reason you’re getting PowerBIEntityNotFound via REST, while XMLA still succeeds.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 06:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5004869#M64494</guid>
      <dc:creator>mohit_sakhare</dc:creator>
      <dc:date>2026-02-11T06:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API returns PowerBIEntityNotFound for dataset with upstream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5040237#M64532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1534072"&gt;@msantos5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1338640"&gt;@mohit_sakhare&lt;/a&gt;&amp;nbsp;Thanks for the inputs.&lt;/P&gt;
&lt;P&gt;I hope the information provided by user was helpful. If you still have questions, please don't hesitate to reach out to the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 12:45:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5040237#M64532</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2026-02-16T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API returns PowerBIEntityNotFound for dataset with upstream</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5115031#M64590</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1534072"&gt;@msantos5&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 09:03:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-returns-PowerBIEntityNotFound-for-dataset-with/m-p/5115031#M64590</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2026-02-23T09:03:43Z</dc:date>
    </item>
  </channel>
</rss>

