Cloud Orchestrator Swagger API throwing OData query options error using /QueueItems/QueueItems_Get

Having an odd issue with the Cloud Orchestrator Swagger interface (v17 according to the web page). This is an enterprise license cloud instance not community.

After setting up Authentication, using the /odata/QueueItems swagger GET call using the default Paramters settings, the call works just fine returning a 200 with a resulting Response Body of all queue items found.

But, changing the $orderby parameters to include CreationTime, it returns a HTTP 400 with this error:

{
“message”: “Invalid OData query options.”,
“errorCode”: 1000,
“traceId”: “00-48f0c31ceb314cb64311c85fd0a814e1-b9cfd813159abfe2-00”
}

Interestingly, clearing CreationTime from $orderby and putting CreationTime in $select, it works just fine again. It returns with a HTTP 200 with a list of the queue items found each its respective CreationTime attribute only like it should.

This /odata/QueueItems API works in an v2022.10 onpremise Orchestrator just fine using $sortby with CreationTime just fine.

Anyone seen anything like this ?

Hi @riverrat437

Check out this thread

Regards

Hi @riverrat437

I’m not sure if it related, but check out this thread

Get queue items returns error “Invalid odata query options code 1000” - Help / Activities - UiPath Community Forum

Cheers

Thanks for both replies. While the replies are interesting, looking to find out why its not working as stated. Not for alternatives at this point. The API in question is currently used within a custom built application against an onpremise Orchestrator v2022.10.4 (I think) and it works just fine using $orderby = CreationTime.

I just tried it with my personal community licensed Cloud Orchestrator tenant in Swagger. In that tenant’s swagger interface the /odata/GetItems GET API works like it should using $orderby = CreationTime.

For some reason in this enterprise license Cloud Orchestrator tenant’s swagger interface, that API call using $orderby = CreationTime fails with a HTTP 400. Using CreationTime in the $select parameter it returns a HTTP 200 - not sure if this test is helpful but clearly shows the CreationTime attribute is functional in other input parameters to that API call.

You sure you didnt turn strict API on? (Its under Tenant Settings)
This is exactly the error I would expect if its on.

1 Like

Thank you so much !! :slight_smile:

That was it. Works fine now. For anyone else, look here:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.