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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
allanyiin
Advocate II
Advocate II

Cannot import pbix file for weeks...always not found

I try to import my pbix file to Power BI Embedded workspace for weeks and nothing work. I can import the file<40 mb, but I need import data model is about 132 mb. I'm sure it's not over the size limit. Event I try to setting client.HttpClient.Timeout = new TimeSpan(24, 0, 0) , and not work. But I use fiddler to track the process of import. I found out the filestream always throw + Handle 'fileStream.Handle' threw an exception of type 'System.ObjectDisposedException' System.IntPtr {System.ObjectDisposedException} + Length 'fileStream.Length' threw an exception of type 'System.ObjectDisposedException' long {System.ObjectDisposedException} + Position 'fileStream.Position' threw an exception of type 'System.ObjectDisposedException' long {System.ObjectDisposedException} + SafeFileHandle 'fileStream.SafeFileHandle' threw an exception of type 'System.ObjectDisposedException' Microsoft.Win32.SafeHandles.SafeFileHandle {System.ObjectDisposedException} PostImportWithFileAsync will finish without exception but import.ImportState is null and GetImportByIdAsync will throw - e {"Operation returned an invalid status code 'NotFound'"} System.Exception {Microsoft.Rest.HttpOperationException} Can any help me....
2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@allanyiin

 

Can you post the code used to import the PBIX?

I use the sample at Github (API v1.0)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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