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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Cannot open power bi app

Hi I encountered a problem when opening either the Power Bi desktop App or any .pbix file. The error message shows "Unable to read beyond the end of the stream." Can anyone help with the issue? Thanks!

 

Feedback Type:
Frown (Error)

Error Message:
Unable to read beyond the end of the stream.

Stack Trace:
   at System.IO.__Error.EndOfFile()
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadUInt16()
   at MS.Internal.IO.Zip.ZipIOExtraFieldElement.Parse(BinaryReader reader, ZipIOZip64ExtraFieldUsage zip64extraFieldUsage)
   at MS.Internal.IO.Zip.ZipIOExtraField.ParseRecord(BinaryReader reader, ZipIOZip64ExtraFieldUsage zip64extraFieldUsage, UInt16 expectedExtraFieldSize)
   at MS.Internal.IO.Zip.ZipIOLocalFileHeader.ParseRecord(BinaryReader reader, Encoding encoding)
   at MS.Internal.IO.Zip.ZipIOLocalFileBlock.ParseRecord(BinaryReader reader, String fileName, Int64 position, ZipIOCentralDirectoryBlock centralDir, ZipIOCentralDirectoryFileHeader centralDirFileHeader)
   at MS.Internal.IO.Zip.ZipIOLocalFileBlock.SeekableLoad(ZipIOBlockManager blockManager, String fileName)
   at MS.Internal.IO.Zip.ZipIOBlockManager.LoadLocalFileBlock(String zipFileName)
   at MS.Internal.IO.Zip.ZipArchive.GetFile(String zipFileName)
   at MS.Internal.IO.Zip.ZipArchive.GetFiles()
   at System.IO.Packaging.ZipPackage.ContentTypeHelper..ctor(ZipArchive zipArchive, IgnoredItemHelper ignoredItemHelper)
   at System.IO.Packaging.ZipPackage..ctor(Stream s, FileMode mode, FileAccess access, Boolean streaming)
   at System.IO.Packaging.Package.Open(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)
   at Microsoft.Mashup.Storage.ZipPackage..ctor(Stream stream, FileMode fileMode, FileAccess fileAccess)
   at Microsoft.Mashup.Storage.Local.ZipLocalStorage..ctor(Stream stream, Boolean isReadonly)
   at Microsoft.Mashup.Host.Document.Storage.Local.SharedLocalStorageAccessor.LoadCachedStorage()
   at Microsoft.Mashup.Host.Document.Storage.Local.SharedLocalStorageAccessor.Access()
   at Microsoft.Mashup.Host.Document.Storage.Local.LocalFeatureSwitchStorage.GetFeatureSwitches()
   at Microsoft.Mashup.Host.Document.Storage.TracingFeatureSwitchStorage.GetFeatureSwitches()
   at Microsoft.Mashup.Host.Document.PreviewFeatureSwitch.LoadEnabled()
   at Microsoft.Mashup.Host.Document.FeatureSwitch..ctor(Guid id, Boolean defaultValue, Boolean changeRequiresRestart)
   at Microsoft.PowerBI.Client.Windows.Services.FeatureSwitchManager.RegisterPreviewFeatureSwitches()
   at Microsoft.PowerBI.Client.Windows.Services.FeatureSwitchManager.RegisterKnownSwitches()
   at Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_0.<Main>b__1()
   at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)

Stack Trace Message:
Unable to read beyond the end of the stream.

Invocation Stack Trace:
   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
   at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
   at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass14_0.<HandleException>b__0()
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.PowerBI.Client.Program.Main(String[] args)
1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

Try the latest version and check Resolve issues when starting Power BI Desktop.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.