<?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: REST API for Power BI, Reports - Export To File giving error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/988053#M22783</link>
    <description>&lt;P&gt;I am also getting same error when using new REST API released from Microsoft&lt;BR /&gt;Invoke-RestMethod : {"error":{"code":"InvalidRequest","message":"Report requested for export is not on dedicated capacity"}}&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Invoke-RestMethod -Uri $uri2 -Headers $auth_header -Method GET -Body ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 04:29:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-24T04:29:26Z</dc:date>
    <item>
      <title>REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/985664#M22771</link>
      <description>&lt;H3&gt;Hello!&lt;/H3&gt;&lt;P&gt;While trying to test REST Api for export to file, i am facing the below issue#403 for all types of file. I want to use the export file behind a button in my power bi report to export the pdf file.&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile&lt;/A&gt;&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Body&lt;/H3&gt;&lt;DIV class="codeHeader"&gt;&lt;SPAN class="language"&gt;JSON&lt;/SPAN&gt;&lt;SPAN&gt;Copy&lt;/SPAN&gt;&lt;DIV class="successful-copy-alert is-absolute has-right-zero has-top-zero has-left-zero has-bottom-zero is-flex has-flex-align-items-center has-flex-justify-content-center has-text-success-invert has-background-success is-transparent"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  &lt;SPAN class="hljs-attr"&gt;"error"&lt;/SPAN&gt;: {
    &lt;SPAN class="hljs-attr"&gt;"code"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"InvalidRequest"&lt;/SPAN&gt;,
    &lt;SPAN class="hljs-attr"&gt;"message"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Report requested for export is not on dedicated capacity"&lt;/SPAN&gt;
  }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 13:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/985664#M22771</guid>
      <dc:creator>Awaiskhan</dc:creator>
      <dc:date>2020-03-22T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/985801#M22772</link>
      <description>&lt;P&gt;Well, the error you are getting seems to indicate that you need Premium or Embedded. What kind of license do you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could check the Issues forum here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.powerbi.com/t5/Issues/idb-p/Issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And if it is not there, then you could post it.&lt;BR /&gt;&lt;BR /&gt;If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to &lt;A href="https://support.powerbi.com" target="_blank"&gt;https://support.powerbi.com&lt;/A&gt;. Scroll down and click "CREATE SUPPORT TICKET".&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 17:09:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/985801#M22772</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-22T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/988053#M22783</link>
      <description>&lt;P&gt;I am also getting same error when using new REST API released from Microsoft&lt;BR /&gt;Invoke-RestMethod : {"error":{"code":"InvalidRequest","message":"Report requested for export is not on dedicated capacity"}}&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Invoke-RestMethod -Uri $uri2 -Headers $auth_header -Method GET -Body ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 04:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/988053#M22783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T04:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1044251#M23299</link>
      <description>&lt;P&gt;I'm facing same error. I tried to get the correct licenses (trial mode) so now the report is in a group with premium capacity activated.&lt;/P&gt;&lt;P&gt;I also give a PowerBi Pro license to the user that is testing the API. The workgroup now shows the diamond icon on the right side of its name, so I guess it is correctly setted up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the thing is I'm getting the same error message.&amp;nbsp;Any Idea of what I'm doing wrong? what else should I check?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1044251#M23299</guid>
      <dc:creator>riguberto</dc:creator>
      <dc:date>2020-04-23T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1046194#M23308</link>
      <description>&lt;P&gt;I'm also getting the same error.&amp;nbsp; I am also using A1 capacity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have tested the API here&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#code-try-0" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#code-try-0&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I have enabled export reports as images as described here: &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What else should I be considering! Are there specific changes I need to make to the workspace or the power bi capacity, should I be using a service principal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 06:53:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1046194#M23308</guid>
      <dc:creator>OpenDataLab</dc:creator>
      <dc:date>2020-04-24T06:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1050637#M23340</link>
      <description>&lt;P&gt;After reading hundreds of tutorials, finally I get a solution that at least is working fine for me. The blog that helped me the most was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2020/04/27/calling-the-power-bi-export-api-from-power-automate-part-2-creating-a-flow-that-exports-a-report-to-a-csv-file/" rel="bookmark" target="_blank"&gt;Calling The Power BI Export API From Power Automate, Part 2: Creating A Flow That Exports A Paginated Report To A CSV File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/" target="_blank"&gt;https://blog.crossjoin.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The steps for me were:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Azure Power bi resource name embeeded app must be running BEFORE you login into the "try it" button of the API documentation page. and then (copy pasted from the refered blog). I was pausing the app while finding the solution to stop the billing counter.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup" target="_blank"&gt;Export To File In Group&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;must be called first, to start the process of exporting either a Power BI report or a paginated report to a file. Exporting may take some time, though, so the exported file doesn’t get returned at this point. In the headers of the response there is a retry-after value in seconds telling you how long you must wait initially, before…&lt;/LI&gt;&lt;LI&gt;…calling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getexporttofilestatusingroup" target="_blank"&gt;Get Export To File Status In Group&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to find out whether the export is ready or not. If it isn’t ready you again need to wait the number of seconds specified in the retry-after header before checking the status again. If it is ready, you can then…&lt;/LI&gt;&lt;LI&gt;…call&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getfileofexporttofileingroup" target="_blank"&gt;Get File Of Export To File In Group&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to download the export file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that works for you aswell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 11:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1050637#M23340</guid>
      <dc:creator>riguberto</dc:creator>
      <dc:date>2020-04-27T11:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1252081#M24930</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/189080"&gt;@riguberto&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done the similar steps and used the 3 REST APIs you mentioned in my Flow to get the report PDF. Its working all fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a next step, I want to export only certain pages of my report in PDF.&lt;/P&gt;&lt;P&gt;Have you tried that or have any leads on how it can be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 08:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1252081#M24930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-27T08:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST API for Power BI, Reports - Export To File giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1978558#M30704</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;, can you share your code, i am also trying to download report as file but getting error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have followed microsoft documentation , not working for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 07:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-for-Power-BI-Reports-Export-To-File-giving-error/m-p/1978558#M30704</guid>
      <dc:creator>sanjeevgaut</dc:creator>
      <dc:date>2021-07-26T07:09:22Z</dc:date>
    </item>
  </channel>
</rss>

