<?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 Import Pbix File as Service Principal in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Import-Pbix-File-as-Service-Principal/m-p/2239020#M33446</link>
    <description>&lt;P&gt;I have the following settings going&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Tenant Developer Setting is enabled for Service Principal to access Admin APIs&lt;/P&gt;&lt;P&gt;- Service Principal is added as administrator to the workspace&lt;/P&gt;&lt;P&gt;- I am trying to upload a pbix to import as a report + dataset using the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;_ = &lt;SPAN class="s1"&gt;await&lt;/SPAN&gt; client&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.Imports.PostImportWithFileAsync(&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;powerbiGroupId,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;stream,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;reportName,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;ImportConflictHandlerMode.Overwrite,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;skipReport: &lt;SPAN class="s1"&gt;false&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- powerbiGroupId = workspace ID&lt;/P&gt;&lt;P&gt;- stream = stream from the file&lt;/P&gt;&lt;P&gt;- reportName = valid report name to be uploaded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;System.Net.Http: The operation was canceled. System.Net.Http: &lt;BR /&gt;Error while copying content to a stream. System.Net.Sockets: &lt;BR /&gt;Unable to read data from the transport connection: &lt;BR /&gt;The I/O operation has been aborted because of either a thread exit or an application request.. &lt;BR /&gt;The I/O operation has been aborted because of either a thread exit or an application request.&lt;/PRE&gt;&lt;P&gt;The file is between 1MB - 1.4 MB. How do I check what the underlying issue is. Is there a limit that I am hitting ?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 21:48:33 GMT</pubDate>
    <dc:creator>akarkal</dc:creator>
    <dc:date>2021-12-14T21:48:33Z</dc:date>
    <item>
      <title>Import Pbix File as Service Principal</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Import-Pbix-File-as-Service-Principal/m-p/2239020#M33446</link>
      <description>&lt;P&gt;I have the following settings going&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Tenant Developer Setting is enabled for Service Principal to access Admin APIs&lt;/P&gt;&lt;P&gt;- Service Principal is added as administrator to the workspace&lt;/P&gt;&lt;P&gt;- I am trying to upload a pbix to import as a report + dataset using the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;_ = &lt;SPAN class="s1"&gt;await&lt;/SPAN&gt; client&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.Imports.PostImportWithFileAsync(&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;powerbiGroupId,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;stream,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;reportName,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;ImportConflictHandlerMode.Overwrite,&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;skipReport: &lt;SPAN class="s1"&gt;false&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- powerbiGroupId = workspace ID&lt;/P&gt;&lt;P&gt;- stream = stream from the file&lt;/P&gt;&lt;P&gt;- reportName = valid report name to be uploaded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;System.Net.Http: The operation was canceled. System.Net.Http: &lt;BR /&gt;Error while copying content to a stream. System.Net.Sockets: &lt;BR /&gt;Unable to read data from the transport connection: &lt;BR /&gt;The I/O operation has been aborted because of either a thread exit or an application request.. &lt;BR /&gt;The I/O operation has been aborted because of either a thread exit or an application request.&lt;/PRE&gt;&lt;P&gt;The file is between 1MB - 1.4 MB. How do I check what the underlying issue is. Is there a limit that I am hitting ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 21:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Import-Pbix-File-as-Service-Principal/m-p/2239020#M33446</guid>
      <dc:creator>akarkal</dc:creator>
      <dc:date>2021-12-14T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import Pbix File as Service Principal</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Import-Pbix-File-as-Service-Principal/m-p/2243838#M33507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/325592"&gt;@akarkal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I check the limitation about Service principal. Service principal only support some read-only admin APIs. Post Import a pbix file to workspace needs&amp;nbsp;&lt;SPAN&gt;Dataset.ReadWrite.All.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the offical blog:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#considerations-and-limitations" target="_self"&gt;Considerations and limitations&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Service principal only supports some read-only admin APIs. To enable service principal support for read-only admin APIs, you have to enable the Power BI service admin settings in your tenant. For more information, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication" target="_blank" rel="noopener" data-linktype="relative-path"&gt;Enable service principal authentication for read-only admin APIs&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 06:25:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Import-Pbix-File-as-Service-Principal/m-p/2243838#M33507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-17T06:25:50Z</dc:date>
    </item>
  </channel>
</rss>

