Hi Team,
Not able to open the xaml file before it is working fine but now I’m facing the problem that not able to open the document and it is throwing an error that document is invalid.
Please check the logs and provide the solution as soon as possible.
Unexpected end of file while parsing Name has occurred. Line 654, position 48.
Error: System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 654, position 48.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri)
at UiPath.Studio.Plugin.Workflow.Document.XamlDocumentReader.ReadAsync(String path)
at UiPath.Studio.Core.Services.PersistableServiceBase3.GetFactoryByPath(String path) at UiPath.Studio.Core.Services.PersistableServiceBase3.ResolveFactory(OpenInformation openInfo)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo) at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.OpenEntryPoint() at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__140_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146232000
For now, can you try the following steps?
In File Explorer, select the xaml file, then right click - Property - Previous Version tab.
If there is previous file(s), you might be able to restore.
Or, if we can add end tags manually to the xaml file, it might be able to restore partially.
If you open the xaml file with a Notepad (or any other text editor), what is the current content?
Any chance you could share the file with us (even if privately via a private message to me)?
Could you also let us know what is the most probably cause of the corruption (as in, when was it working and what could have changed in the meantime that it stopped working)?
As @loginerror and @ppr mentioned, is there any chance you could share the xaml file, even using private message? It’s difficult for us to consider ways without seeing the actual contents of the xaml file…