Problem with Deadline and Postpone field in Queues

Hello,

I collect data through a chatbot, this data is stored in an SQL database and with a CRON activity and the UiPAth API an element is created in the Orchestrator queue.

The problem is that the API fails if I Deadline and Postpone fields are empty (time fields). But I can’t get the Robot to pick up the element from the queue if these fields are informed (I have tried with current date and future date). I also can’t create the queue element without these fields, it doesn’t allow me to make them null with the CRON activity and API.

Do you know what I can do or what value these fields should take? It is a daily running robot.

Thank you so much.

Hi @ereinapo,

As far as I know postpone and deadline are not mandatory fields so I would like to take a deeper look. Can you please provide a few more details about the error? Please share the following:

  • Your request payload (JSON)
  • Endpoint you’re calling
  • The exact error message
  • A screenshot or code sample of the implementation

JSON Body:

{
  "itemData": {
    "Name": "YourQueueName",
    "Priority": "High",
    "DeferDate": null,
    "DueDate": null,
    "RiskSlaDate": null,
    "Reference": "ABC02",
    "Progress": null,
    "SpecificContent": {
        "PageNo": "10",
        "BatchID": "021d787f-ecf1-4931-b74a-9bf142f830d5"
      }
  }
}

Endpoint: odata/Queues/UiPathODataSvc.AddQueueItem

Was working

Give us some examples of your JSON payload. Maybe your date formats or incorrect or you are passing empty strings instead of nulls.