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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Unable to save a Power BI report .

Feedback Type:
Frown (Error)

 

Release:
July 2024

Product Version:
2.131.1203.0 (24.07) (x64)

Stack Trace:
System.InvalidOperationException
at Microsoft.Mashup.Host.Document.Storage.Metadata.PackageMetadata.AddItemMetadata(PackageItemLocation itemLocation, PackageItemMetadata itemMetadata)
at Microsoft.Mashup.Host.Document.Storage.Local.LocalPackageMetadata.GetPackageMetadata()
at Microsoft.Mashup.Host.Document.Storage.Local.LocalPackageMetadataStorage.GetPackageMetadata()
at Microsoft.Mashup.Host.Document.Storage.Metadata.TracingPackageMetadataStorage.GetPackageMetadata()
at Microsoft.Mashup.Host.Document.Storage.Local.LocalWorkspaceStorage.WritePackage(PackagePath packagePath, Boolean allowMerge, PackageStorage packageStorage, MetadataSet packageMetadata)
at Microsoft.Mashup.Host.Document.Storage.TracingWorkspaceStorage.WritePackage(PackagePath packagePath, Boolean allowMerge, PackageStorage packageStorage, MetadataSet workspaceMetadata)
at Microsoft.Mashup.Host.Document.Storage.PackageStorageManager.WritePackage(PackagePath packagePath, Boolean allowMerge, PackageStorage packageStorage, MetadataSet metadataSet)
at Microsoft.Mashup.Host.Document.Storage.PackageStorageManager.SavePackageTo(PackageReference packageReference, PackagePath packagePath)
at Microsoft.Mashup.Host.Document.Storage.PackageStorageManager.SavePackage(PackageReference packageReference)
at Microsoft.Mashup.Host.Document.Model.Queries.SaveChanges(ChangeReason changeReason, Boolean isRestore)
at Microsoft.PowerBI.Client.Windows.Report.CommitUIStateInternal(ExplorationSaveInformation saveInfo, String diagramLayout, DaxQueryViewState daxQueries, Boolean isEnhancedReport)
at Microsoft.PowerBI.Client.Windows.Report.<CommitUIState>d__85.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.<TrySaveFile>d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.<TryQuickSave>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<HandleAwaitableAsyncExceptions>d__1.MoveNext()

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.131.1203.0","ModuleName":"Microsoft.Mashup.Document.dll","Component":"Microsoft.Mashup.Host.Document.Storage.Metadata.PackageMetadata","Error":"System.InvalidOperationException","MethodDef":"AddItemMetadata","ErrorOffset":"47","ErrorCode":""}

 

 

PBI_scorecardVisual
PBI_NlToDax
PBI_fieldParametersSuperSwitch
PBI_setLabelOnExportPdf
PBI_dynamicFormatString
PBI_oneDriveSave
PBI_oneDriveShare
PBI_useModernPublishDialogs
PBI_gitIntegration
PBI_newCard
PBI_buttonSlicerAuthoring
PBI_EimLessElevatedUser
PBI_mobileAutoReportLayout
PBI_daxInlineCopilot
PBI_aiNarrativesVisual
PBI_generateMeasureDescriptionsButton
PBI_desktopReportAuthoringCopilot

Disabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_b2bExternalDatasetSharing
PBI_enhancedTooltips
PBI_onObject
PBI_publishDialogsSupportSubfolders
PBI_tmdlInDataset
PBI_enhancedReportFormat
PBI_qnaImproveLsdlCopilot
PBI_visualCalculationsAuthoring

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

DPI Scale:
150%

Supported Services:
Power BI

Status: Investigating

Hi @Ash08 ,

 

Pleas clear the local cache to see if it hepls. Navigate to C:\Users\[YourUsername]\AppData\Local\Power BI Desktop and delete the contents of this folder. Be cautious as this will remove all cached data.

As a workaround, you may try to save the report locally on your machine first, then upload it to the desired location. 

 

Best regards.
Community Support Team_Caitlyn

Comments
v-xiaoyan-msft
Community Support
Status changed to: Investigating

Hi @Ash08 ,

 

Pleas clear the local cache to see if it hepls. Navigate to C:\Users\[YourUsername]\AppData\Local\Power BI Desktop and delete the contents of this folder. Be cautious as this will remove all cached data.

As a workaround, you may try to save the report locally on your machine first, then upload it to the desired location. 

 

Best regards.
Community Support Team_Caitlyn