On several customer sites now I have seen the error displayed in the screenshot below, when clicking into the Seach page whether directly or via something like right-click a Delivery Group and shoosing “Show Machines”. Note that clicking Close lets you continue to use the Studio console as normal.
“There is an error in XML document (12,11).” Clicking the “View Error Details” button doesn’t reveal anything immediately useful, but if you look closely there are some nuggets of information hiding there that hint at the cause:
Error Id: XDDS:14743EA8 Exception: System.InvalidOperationException There is an error in XML document (12, 11). at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at Citrix.Console.CommonControls.Mmc.SearchTabbedResultPaneViewModelBase.GetSavedSearchesFromDisk() Inner Exception: System.ArgumentNullException Value cannot be null. Parameter name: enumType at System.Enum.GetValues(Type enumType) at Citrix.Console.Models.Search.EnumSearchFilterTerm.UpdateValue() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObservableCollection1.Read10_EnumSearchFilterTerm(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObservableCollection1.Read14_SearchFilterTermModel(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObservableCollection1.Read15_SearchFilterModel(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObservableCollection1.Read16_AdvancedSearchModel(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObservableCollection1.Read17_ArrayOfAdvancedSearchModel()
The word “GetSavedSearchesFromDisk” drew my attention. I searched the user profile folder and the ProgramData\Citrix folder for Citrix related XML files, and found just one:
Viewing this file in Notepad it seemed to contain a saved search of some description. I experimented with removing this file and re-opening the Studio console to the searches page, and the error did not appear. Creating a new search in the Studio console and saving it created a corresponding new XML file. Curiously enough after this new search was saved, closing and re-opening the Studio console brought back the error, so I can only assume there is a bug in the XenDesktop Studio console that does not allow this file to be properly parsed once it has been created.
So – if you get this error, it seems you can’t take advantage of the Saved Searches feature, you will have to remove the XML file and make do without it for now. I’m going to log a ticket with Citrix Support about this issue and will update the page when I have a response or fix.