uipath-python icon indicating copy to clipboard operation
uipath-python copied to clipboard

DateTime sterilization when programmatically creating queue items

Open Samuel-Ember opened this issue 1 year ago • 2 comments

There seems to be an issue when calling client.queues.create_item with a QueueItem which contains a dueDate, deferDate or riskslaDate.

When the method is executed, the following error occurs:

TypeError: Object of type datetime is not JSON serializable

My guess is that somewhere in the create_item function the QueueItem isn't being correctly serialized before being added to the request body to be sent to the Orchestrator API. This means that it possibly attempts to send a datetime object over a formatted string.

Samuel-Ember avatar Oct 10 '25 02:10 Samuel-Ember

@Samuel-Ember can you share a small concrete sample ?

mjnovice avatar Dec 09 '25 23:12 mjnovice

@Samuel-Ember we fixed the serialization issue. please upgrade the uipath-platform version >=0.1.41 and retry

radu-mocanu avatar Apr 30 '26 15:04 radu-mocanu