<?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 REST API ExportToFileInGroup: unable to export report with Direct Query datasets in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-ExportToFileInGroup-unable-to-export-report-with-Direct/m-p/3104400#M41460</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the method documentation &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to#considerations-and-limitations" target="_self"&gt;here&lt;/A&gt;, the following is stated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;All related datasets in the report you're exporting must reside on a Premium or Embedded capacity, &lt;U&gt;&lt;STRONG&gt;including datasets with a Direct Query connection.&lt;/STRONG&gt;&lt;/U&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried on two reports with Direct Query datasets connections and got the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Couldn't Find Dataset Id".&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the &lt;EM&gt;effectiveIdentity.datasets&lt;/EM&gt;&amp;nbsp;or &lt;EM&gt;datasetToBind&amp;nbsp;&lt;/EM&gt;parameters in the body, but it did not help.&lt;/P&gt;&lt;P&gt;All the datasets I am using are parts of Premium backed capacities, and my service principal is member of each of the workspaces containing the reports and the datasets used by the reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone managed to export from a report that has (a) Direct Query dataset connection(s) ?&lt;/P&gt;&lt;P&gt;I think this post states a similar issue, but not stating something specific regarding Direct Query dataset connections.&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerusers.microsoft.com/t5/Building-Flows/quot-Couldn-t-Find-Dataset-Id-quot-Error-for-Export-To-File-for/td-p/1794387" target="_self"&gt;https://powerusers.microsoft.com/t5/Building-Flows/quot-Couldn-t-Find-Dataset-Id-quot-Error-for-Export-To-File-for/td-p/1794387&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 17:51:46 GMT</pubDate>
    <dc:creator>gnico</dc:creator>
    <dc:date>2023-02-28T17:51:46Z</dc:date>
    <item>
      <title>REST API ExportToFileInGroup: unable to export report with Direct Query datasets</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-ExportToFileInGroup-unable-to-export-report-with-Direct/m-p/3104400#M41460</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the method documentation &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to#considerations-and-limitations" target="_self"&gt;here&lt;/A&gt;, the following is stated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;All related datasets in the report you're exporting must reside on a Premium or Embedded capacity, &lt;U&gt;&lt;STRONG&gt;including datasets with a Direct Query connection.&lt;/STRONG&gt;&lt;/U&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried on two reports with Direct Query datasets connections and got the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Couldn't Find Dataset Id".&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the &lt;EM&gt;effectiveIdentity.datasets&lt;/EM&gt;&amp;nbsp;or &lt;EM&gt;datasetToBind&amp;nbsp;&lt;/EM&gt;parameters in the body, but it did not help.&lt;/P&gt;&lt;P&gt;All the datasets I am using are parts of Premium backed capacities, and my service principal is member of each of the workspaces containing the reports and the datasets used by the reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone managed to export from a report that has (a) Direct Query dataset connection(s) ?&lt;/P&gt;&lt;P&gt;I think this post states a similar issue, but not stating something specific regarding Direct Query dataset connections.&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerusers.microsoft.com/t5/Building-Flows/quot-Couldn-t-Find-Dataset-Id-quot-Error-for-Export-To-File-for/td-p/1794387" target="_self"&gt;https://powerusers.microsoft.com/t5/Building-Flows/quot-Couldn-t-Find-Dataset-Id-quot-Error-for-Export-To-File-for/td-p/1794387&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 17:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-ExportToFileInGroup-unable-to-export-report-with-Direct/m-p/3104400#M41460</guid>
      <dc:creator>gnico</dc:creator>
      <dc:date>2023-02-28T17:51:46Z</dc:date>
    </item>
  </channel>
</rss>

