<?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: Power BI REST API ExportTo not working on deployed web app in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1760062#M28747</link>
    <description>&lt;P&gt;The ExportTo documentation is for downloading the file on the server side; in the wwwroot virtual directory.&lt;/P&gt;&lt;P&gt;It was working on the local solution since the current directory of the app was inside the user---me drive already C:\Users\username\source\repos\app\...&lt;/P&gt;&lt;P&gt;Once its deployed, the server doesn't have access to the users hard drive&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;"&lt;SPAN&gt;Access to the path 'c:\temp' is denied."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I was strictly following the documentation provided here &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Docs&lt;/A&gt;, I forgot to check the logic and confirm.&lt;/P&gt;&lt;P&gt;It was a mistake on my part, as to have access to the client-side directory and functionality, the file needs to be manipulated on the client-side not the server-side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I had to write code to send the export content as a Blob to then be downloaded on the client side by File-saver.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:26:55 GMT</pubDate>
    <dc:creator>SeSPowerBi</dc:creator>
    <dc:date>2021-04-01T14:26:55Z</dc:date>
    <item>
      <title>Power BI REST API ExportTo not working on deployed web app</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1733478#M28498</link>
      <description>&lt;P&gt;Solution has been found.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:56:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1733478#M28498</guid>
      <dc:creator>SeSPowerBi</dc:creator>
      <dc:date>2021-03-29T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API ExportTo not working on deployed web app</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1735340#M28506</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290428"&gt;@SeSPowerBi&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&amp;gt;&amp;gt;succeeds with a valid signature in the Bearer token and the response body is null. However, once it executes the Power Bi REST API call ExportTo it has a "404", response not found.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Have you configured your application setting to allow power bi and azure requests? If not, I'd like to suggest you take a look following document about power bi URL lists:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/power-bi-allow-list-urls" target="_self"&gt;Add Power BI URLs to your allow list&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&amp;gt;&amp;gt;The response is 204, no content. So, the server is sucessfully processed the request but it is not returning any content.&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, the 'service principal' credential has been limited to used with power bi service rest API. Have you enabled it on the admin portal? In addition, please also take a look at the 'service principal' usage limitations with power bi rest API:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#considerations-and-limitations" target="_self"&gt;Embed Power BI content with service principal and an application secret#considerations-and-limitations&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 02:37:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1735340#M28506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-22T02:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API ExportTo not working on deployed web app</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1759494#M28738</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290428"&gt;@SeSPowerBi&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share the solution that you find? I think it may should help others who faced a similar scenario.&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 09:04:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1759494#M28738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-01T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API ExportTo not working on deployed web app</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1760062#M28747</link>
      <description>&lt;P&gt;The ExportTo documentation is for downloading the file on the server side; in the wwwroot virtual directory.&lt;/P&gt;&lt;P&gt;It was working on the local solution since the current directory of the app was inside the user---me drive already C:\Users\username\source\repos\app\...&lt;/P&gt;&lt;P&gt;Once its deployed, the server doesn't have access to the users hard drive&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;"&lt;SPAN&gt;Access to the path 'c:\temp' is denied."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I was strictly following the documentation provided here &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to" target="_blank"&gt;Export Power BI embedded analytics reports API - Power BI | Microsoft Docs&lt;/A&gt;, I forgot to check the logic and confirm.&lt;/P&gt;&lt;P&gt;It was a mistake on my part, as to have access to the client-side directory and functionality, the file needs to be manipulated on the client-side not the server-side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I had to write code to send the export content as a Blob to then be downloaded on the client side by File-saver.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1760062#M28747</guid>
      <dc:creator>SeSPowerBi</dc:creator>
      <dc:date>2021-04-01T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API ExportTo not working on deployed web app</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1765293#M28803</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290428"&gt;@SeSPowerBi&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Thank for your sharing, they should help users with similar situations.&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 07:04:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-not-working-on-deployed-web-app/m-p/1765293#M28803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T07:04:40Z</dc:date>
    </item>
  </channel>
</rss>

