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.

0

XML document error

I keep getting this XML document (1,1) error when I try to open a report in Power BI 

 

Feedback Type:
Frown (Error)

Timestamp:
2024-03-04T16:44:20.5830284Z

Local Time:
2024-03-04T11:44:20.5830284-05:00

Session ID:
a1783f61-5b5a-4869-86ed-c6d2452ee60e

Release:
February 2024

Product Version:
2.126.1261.0 (24.02) (x64)

Stack Trace:
System.InvalidOperationException
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at Microsoft.Mashup.Storage.Xml`1.DeserializeBytes(Byte[] bytes)
at Microsoft.Mashup.Host.Document.Storage.Local.LocalCredentialsStorage.CredentialsStorageContext.TryGetPart(CredentialsList& part)
at Microsoft.Mashup.Host.Document.Storage.Local.LocalStorageContext`1.Init()
at Microsoft.Mashup.Host.Document.Storage.Local.LocalCredentialsStorage.GetCredentials(LocalStorage localStorage)
at Microsoft.Mashup.Host.Document.Storage.Local.LocalCredentialsStorage.GetCredentials()
at Microsoft.Mashup.Host.Document.Storage.TracingCredentialsStorage.GetCredentials()
at Microsoft.PowerBI.Client.Windows.AnalysisServices.PersistedModelSanitizer.TryRestoreModel(IDataModel dataModel, ModelChange& modelChange)
at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseEditable.BuildActionToRestoreConnectionStringCredentials(Func`1& restoreCredentialsAction)
at Microsoft.PowerBI.Client.Windows.ReportPreparer.<ApplyStoredDirectQueryCredentials>d__26.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.ReportPreparer.<Prepare>d__9.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.PowerBIPackagingService.<Open>d__4.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.BiPackageOperationHandler.<LoadArtifact>d__22.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.CurrentArtifactManager.<ExecuteAndHandleFileOpenErrors>d__48.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.CurrentArtifactManager.<>c__DisplayClass33_0.<<OpenArtifactAndSetAsCurrent>b__0>d.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.UIBlockingService.<>c__DisplayClass13_0`1.<<BlockUIAndRun>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.WaitOnUIThreadForTaskCompletion[T](Task`1 task)
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.BlockUIAndRun[T](Func`1 asyncMethod)
at Microsoft.PowerBI.Client.Windows.Services.CurrentArtifactManager.OpenArtifactAndSetAsCurrent(IPowerBIWindowService windowService, IPowerBIArtifact artifactToOpen, IExceptionHandler exceptionHandler, Nullable`1 entryPoint)
at Microsoft.PowerBI.Client.Windows.Services.FileOperationUIHandler.<OpenFileInternal>d__45.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.126.1261.0","ModuleName":"Microsoft.MashupEngine.dll","Component":"Microsoft.Mashup.Storage.Xml`1","Error":"System.InvalidOperationException","MethodDef":"DeserializeBytes","ErrorOffset":"17","ErrorCode":""}

InnerException0.Stack Trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCredentialsList.Read6_CredentialsList()

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

CLR Version:
4.8 or later [Release Number = 528372]

Peak Virtual Memory:
70.6 GB

Private Memory:
572 MB

Peak Working Set:
1.1 GB

IE Version:
11.3636.19041.0

User ID:
e8ef5242-aa58-47d3-8b55-ec780561a579

Workbook Package Info:
1* - en-US, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: False.

Telemetry Enabled:
True

Model Default Mode:
Empty

Model Version:
PowerBI_V1

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_b2bExternalDatasetSharing
PBI_enhancedTooltips
PBI_sparklines
PBI_scorecardVisual
PBI_NlToDax
PBI_fieldParametersSuperSwitch
PBI_angularRls
PBI_onObject
PBI_backstageUI
PBI_setLabelOnExportPdf
PBI_dynamicFormatString
PBI_oneDriveSave
PBI_oneDriveShare
PBI_useModernPublishDialogs
PBI_gitIntegration
PBI_newCard
PBI_buttonSlicerAuthoring
PBI_modelExplorer
PBI_daxQueryView
PBI_aiNarrativesVisual
PBI_generateMeasureDescriptionsButton

Disabled Preview Features:
PBI_tmdlInDataset
PBI_EimLessElevatedUser
PBI_qnaImproveLsdlCopilot
PBI_visualCalculationsAuthoring

Enabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

DPI Scale:
125%

Supported Services:
Power BI

Status: Delivered
Comments
Anonymous
Not applicable

Hi  @Rank237 

Thanks for the feedback, I have a couple of questions I need to confirm.
1. Were you able to open this report properly before? Did you do any update operations in the meantime?
2. If you open Power BI Desktop directly, and then create a new report? Will there be an error?
3. Can you upload the pbix file to Power BI Service and then open the report? If yes, you can download the report from Service and then open it in Desktop.

 

Best Regards,
Community Support Team _ Ailsa Tao

Rank237
Frequent Visitor
  1.  Yes, I was able to open everything with no issues. 
  2. I did get that error. 

 

I think the issue is resolved at this time. I completely uninstalled PBI from my computer (install files and all). I reinstalled the program and got it to work again. I have a few PBI's on my computer now. 

Anonymous
Not applicable

Hi  @Rank237 

I am so glad that you have fixed your issue . I will change the status to "Delivered" .

 

Best Regards,
Community Support Team _ Ailsa Tao