Error: "multiple root elements" after importing SmartObject

  • 31 October 2010
  • 1 reply
  • 2 views

Badge +1

When I open K2 studio, and try to expand some of the SmartObjects there, I get this error: There are multiple root elements


This happened after importing of a SmartObject definition to the server. In log files I get these entries:


 


"38613","2010-10-31 02:15:47","Error","SmartObjects","10521","GeneralError","SourceCode.SmartObjects.Runtime.SmartObjectManagementServer [GetSmartObjectDefinition( 4f8d7659-7143-4e37-861b-3878ae6e4b71 , False )]","10521 SmartObject Runtime.Management General Error: 'There are multiple root elements. Line 1, position 419.


'","anonymous","0.0.0.0","stdemo:C:Program FilesK2 blackpointHost ServerBin","38613","8ae3d1ba389e45a1b34c06712620a3ee",""


"38615","2010-10-31 02:15:47","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling SourceCode.SmartObjects.Runtime.SmartObjectManagementServer.GetSmartObjectDefinition, There are multiple root elements. Line 1, position 419.","system","192.168.131.69","stdemo:C:Program FilesK2 blackpointHost ServerBin","38615","ff9cd26bd05d4f3ebae86d1d466fac81",""


"38616","2010-10-31 02:15:47","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Services.TCPClientSocket.InternalMarshal","2025 Error Marshalling SourceCode.SmartObjects.Runtime.SmartObjectManagementServer.GetSmartObjectDefinition, There are multiple root elements. Line 1, position 419.","system","192.168.131.69","stdemo:C:Program FilesK2 blackpointHost ServerBin","38616","5657dc92891042abb41054f7f710426c",""


"38617","2010-10-31 02:15:47","Error","Unknown","8060","ProcessPacketError","SourceCode.Hosting.Server.Services.TCPClientSocket.ProcessPacket","8060 ProcessPacket Error, There are multiple root elements. Line 1, position 419.","system","192.168.131.69","stdemo:C:Program FilesK2 blackpointHost ServerBin","38617","ec5c2f3c5b98443b9440621316703f85",""


 


 


Thank you for your help!


Petya


1 reply

Badge +1

Found it - there were duplicate values in K2SmartBroker database, ServiceInstance table. Guess it is because I've run SmartObject import procedure 2 times. Had to remove the duplicated roles and the message is gone. Hope this does not break other things ...

Reply