Skip to main content

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:

 

  1. Ensure you have the correct K2 version and/or Cumulative update installed. See KB001893 to see what Fix Pack level you have installed.
  2. Download the latest Fix Pack using the links in the table above for the version you require.
  3. Install the Fix Pack to apply the fix.
Be the first to reply!

Reply