Skip to main content

I'm attempting to drill down into the Object Browser (Visual Studio and K2 Studio) to investigate Smart Objects and receive an error message when clicking the "SmartObject Server" node. 


The error reads "This error occured while attempting to connect to the SmartObject Server:  SmartObject Server Exception:  There are multiple root elements.  Line 1, position 277."


 


View details below:


System.Exception: SmartObject Server Exception: There are multiple root elements. Line 1, position 277. ---> System.Xml.XmlException: There are multiple root elements. Line 1, position 277.
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectm] Parameters, Booleans] NullList, MarshalMessageType CallType)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, ObjectN] Parameters, Booleane] NullList, MarshalMessageType CallType)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeName, String MethodName, Objecto] Parameters)
   at SourceCode.SmartObjects.Management.SmartObjectManagementServer.GetSmartObjectDefinition(Boolean throwInconsistentException, Guid smartObjectGuid)
   --- End of inner exception stack trace ---
   at SourceCode.Workflow.Common.HostedServers.SmartObjects.GetSmartObjectDefinition(Guid guid, Boolean throwInconsistentException)
   at SourceCode.Plugins.SmartObjectBrowser.Framework.ServerItem.OnLoadItems()


Any support is much appreciated!


Robby


16426i0690D36C83138933.jpg

Are your Client Tools connected to K2 Host Server? Check the configurationmanager.config xml validation. Also check the connection strings in there.


Did you recently create any smartobjects that aren't valid anymore. Does your smartobjects have special characters in their names that can invalidate XML. Open SmartObject Service Tester tool from Bin folder and delete those new ones. You can backup SMO from that tool before deleting.


Reply