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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.