Issue Description
When you execute a UIPath SmartObject method and a property in the swagger definition is of type object, K2 creates it as a net string. This causes any JSON value that is passed in to be serialized as a string which escapes all the open quotation marks (“). An” Object of type 'Newtonsoft.Json.Linq.Object' cannot be converted to type 'XX_REST_API.k2RESTIdentifier_QueuesAddQueueItemParameters'.” error occurs when the call hits your API as the JSON body on a REST request call has that value escaped.
Error Message:
The following error occurs: ”Object of type 'Newtonsoft.Json.Linq.Object' cannot be converted to type 'XX_REST_API.k2RESTIdentifier_QueuesAddQueueItemParameters'.”
Resolution
The fix is available in:
- K2 Five (5.5) Fix Pack 01.
- Ensure you have the correct K2 version and/or Cumulative update installed. See KB001893 to see what Fix Pack level you have installed.
- Download the latest Fix Pack using the links in the table above for the version you require.
- Install the Fix Pack to apply the fix.