K2 Connect XML Fields not returned correctly

  • 18 November 2016
  • 0 replies
  • 0 views

Badge +10


 

Symptoms


Using K2 connect for SAP 4.6.11 it was found that when assigning the property to an XML field, you are requested to specify the part of the XML document you want to return. When selecting "connect", which is the top level node listed, the values returned do not contain the andltconnectandgt and andlt/connectandgt tags. If it is then attempted to deserialise the XML (using another SmartObject method built in Visual Studio) we get "Object reference not set to an instance of an object"
 

Diagnoses


Reviewing the K2 Connect SmartObjects it was found that the issue is related to the Method type used when setting up the SmartObject Method.
 

Resolution

If the SmartObject Method is configured with a Type ? Read, the andltconnectandgt tags are not returned as part of the XML Data when the SmartObject is executed.

If the SmartObject Method is configured with a Type ? List, the andltconnectandgt tags are returned as part of the XML Data when the SmartObject is executed.

It was confirmed that the SmartObjects that return the XML Data incorrectly was set to the Read method type. After changing the Method in the SmartObjects to Type ? List, the XML data was returned correctly.

Thanks, and regards,
Thinus




 

0 replies

Be the first to reply!

Reply