<?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: &amp;quot;InvalidFileSizeError&amp;quot; when upload for temporary storage with Rest API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/quot-InvalidFileSizeError-quot-when-upload-for-temporary-storage/m-p/4695340#M61221</link>
    <description>&lt;P&gt;We face the same problem. Did you manage to solve this ?&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 06:42:12 GMT</pubDate>
    <dc:creator>ancm</dc:creator>
    <dc:date>2025-05-16T06:42:12Z</dc:date>
    <item>
      <title>"InvalidFileSizeError" when upload for temporary storage with Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/quot-InvalidFileSizeError-quot-when-upload-for-temporary-storage/m-p/3231632#M42636</link>
      <description>&lt;P&gt;I am trying to upload a pbix file that is over 2 gb using Power Shell and the Rest API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading the&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group" target="_self"&gt;Post Import In Group&lt;/A&gt; documentation&amp;nbsp;I see I have to &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/create-temporary-upload-location-in-group" target="_self"&gt;upload to a temporary&amp;nbsp;location&lt;/A&gt; and then pass a "fileUrl" in the body of the import request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this Power Shell &lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/PowerShell%20Scripts/Import%20Large%20Files" target="_self"&gt;script&lt;/A&gt; provide by Microsoft. The upload of the file to temporary&amp;nbsp;storage works fine but I get &amp;nbsp;"code": "InvalidFileSizeError" when trying to import the file from the temporary storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did see this one &lt;A href="https://community.powerbi.com/t5/Developer/Post-in-Group-API-using-Nodejs/td-p/1054892" target="_self"&gt;post&lt;/A&gt; on the forum about passing the size of the file in the header of the import call but not sure how to do that as I see no reference&amp;nbsp;to this in the documentation.&amp;nbsp; Before reaching out to support I wanted to see if anyone else has a solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Successful Upload:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Error:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Thu, 11 May 2023 20:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/quot-InvalidFileSizeError-quot-when-upload-for-temporary-storage/m-p/3231632#M42636</guid>
      <dc:creator>DP333</dc:creator>
      <dc:date>2023-05-11T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: "InvalidFileSizeError" when upload for temporary storage with Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/quot-InvalidFileSizeError-quot-when-upload-for-temporary-storage/m-p/4695340#M61221</link>
      <description>&lt;P&gt;We face the same problem. Did you manage to solve this ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 06:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/quot-InvalidFileSizeError-quot-when-upload-for-temporary-storage/m-p/4695340#M61221</guid>
      <dc:creator>ancm</dc:creator>
      <dc:date>2025-05-16T06:42:12Z</dc:date>
    </item>
  </channel>
</rss>

