cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message: Exception of type "System.OutOfMemoryException" when saving the file

Feedback Type:
Frown (Error)

Timestamp:
2019-11-19T16:43:19.1509587Z

Local Time:
2019-11-19T17:43:19.1509587+01:00

Session ID:
d5405066-93bf-4400-8ea7-f99fee7eef0e

Release:
November 2019

Product Version:
2.75.5649.582 (19.11) (x86)

Stack Trace:
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.TrackingMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.SparseMemoryStream.WriteAndCollapseBlocks(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.SparseMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.CompressEmulationStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.CompressStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at Microsoft.PowerBI.Packaging.PowerBIPackagingUtils.SetContent(Package package, Uri storagePath, Stream contentStream, String contentType, Boolean isOptional, CompressionOption compressionOption)
at Microsoft.PowerBI.Packaging.Storage.PowerBIPackagePart.SetContent(IStreamablePowerBIPackagePartContent content)
at Microsoft.PowerBI.Packaging.PowerBIPackager.Save(IPowerBIPackage powerbiPackage, Stream storageStream, Boolean includeData, Boolean forceStaticResourceUrisValid)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.PowerBI.Packaging.PowerBIPackager.Save(IPowerBIPackage powerbiPackage, Stream storageStream, Boolean includeData, Boolean forceStaticResourceUrisValid)
at Microsoft.PowerBI.Client.Windows.Services.PowerBIPackagingService.Save(Report report, FileStream fileStream, DataModelSaveMode dataModelSaveMode, Queries overrideQueries)
at Microsoft.PowerBI.Client.Windows.Services.FileManager.SaveToTempFile(Boolean modelIsDirty, Boolean forceStreamSave)
at Microsoft.PowerBI.Client.Windows.Services.FileManager.<TrySaveBIPackage>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Client.Windows.Services.FileManager.<TrySaveFile>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.<>c__DisplayClass15_0`1.<<BlockUIAndRun>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.WaitOnUIThreadForTaskCompletion(Task task)
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.BlockUIAndRun[T](Func`1 asyncMethod)
at Microsoft.PowerBI.Client.Windows.LocalFileOpenSaveUI.ShowSaveUIAndWait(IPowerBIWindowService windowService, IExceptionHandler exceptionHandler, IPbixFile pbixFile, Func`2 performSaveMethod)
at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.TrySaveFile(IPowerBIWindowService windowService, IExceptionHandler exceptionHandler, IReportDocumentProvider reportDocumentProvider, IDiagramLayoutProvider diagramLayoutProvider, IQueryServices queryServices, TelemetryUserActionId entryPoint, IOpenSaveUI openSaveUI, Boolean saveAsNewFile, Boolean saveAsPbixOnly)
at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.TrySaveFile(IReportDocumentProvider reportDocumentProvider, IDiagramLayoutProvider diagramLayoutProvider, IPowerBIWindowService windowService, IExceptionHandler exceptionHandler, IQueryServices queryServices, TelemetryUserActionId entryPoint, Boolean saveAsNewFile, Boolean saveAsPbixOnly)
at Microsoft.PowerBI.Client.Windows.FileCommands.SaveAsFileLocal(IPowerBIWindowService windowService, IExceptionHandler exceptionHandler, SaveFileCommandParameter saveParameters)
at Microsoft.PowerBI.Client.Windows.Commands.CommandFactory.<>c__DisplayClass13_1`1.<FromSyncHandlers>b__1()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)

OS Version:
Microsoft Windows NT 10.0.17134.0 (x64 en-US)

CLR Version:
4.7 or later [Release Number = 461808]

Peak Virtual Memory:
1.8 GB

Private Memory:
733 MB

Peak Working Set:
813 MB

IE Version:
11.1069.17134.0

User ID:
179540bf-83bc-4104-92a9-75b693667313

Workbook Package Info:
1* - en-US, Query Groups: 6, fastCombine: Enabled, runBackgroundAnalysis: True.

Telemetry Enabled:
True

Snapshot Trace Logs:
C:\Users\joaquin_medrano\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot482760308.zip

Model Default Mode:
Import

Disabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_NewWebTableInference
PBI_showIncrementalRefreshPolicy
PBI_qnaLiveConnect
PQ_AIInsightsFunctionBrowser
PBI_realTimeRefresh
PBI_userFavoriteResourcePackagesEnabled
PBI_personalVisualizationPaneEnabled
PBI_QueryDiagnostics
PBI_showMinervaRibbon
PBI_showMinervaViewNavigator
PBI_decompositionTree

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

DPI Scale:
250%

Supported Services:
Power BI

Status: New
Comments
Community Support Team

@johmedrano 

 

You may try 64-bit latest version (2.75.5649.801).