Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DP333
Frequent Visitor

"InvalidFileSizeError" when upload for temporary storage with Rest API

I am trying to upload a pbix file that is over 2 gb using Power Shell and the Rest API. 

 

Reading the Post Import In Group documentation I see I have to upload to a temporary location and then pass a "fileUrl" in the body of the import request.

 

I used this Power Shell script provide by Microsoft. The upload of the file to temporary storage works fine but I get  "code": "InvalidFileSizeError" when trying to import the file from the temporary storage. 

 

I did see this one post 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 to this in the documentation.  Before reaching out to support I wanted to see if anyone else has a solution to this?

 

Any suggestions are greatly appreciated!

 

Successful Upload:

DP333_0-1683835261573.png

Error:

DP333_1-1683835284352.png

 

 

 

 

 

1 REPLY 1
ancm
New Member

We face the same problem. Did you manage to solve this ?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.