Druid_Uipath Chatbot........Error sending the request to UiPath Orchestrator: error code: BadRequest, error message: {“message”:“Invalid JobsCount”,“errorCode”:0,“resourceIds”:null}

Hi,

I am creating a chatbot using Druid.
I have linked uipath project to one of my flows
while executing it through chat bot I am getting the following error

Can anyone please help

I would review the API request that you are sending and having a read over the swagger documentation.

https://<orchestrator_fqdn>/swagger/index.html#/Jobs/Jobs_StartJobs

Example Payload

{
  "startInfo": {
    "ReleaseKey": "string",
    "Strategy": "All",
    "RobotIds": [
      0
    ],
    "MachineSessionIds": [
      0
    ],
    "NoOfRobots": 0,
    "JobsCount": 0,
    "Source": "Manual",
    "JobPriority": "Low",
    "RuntimeType": "NonProduction",
    "InputArguments": "string",
    "Reference": "string"
  }
}

JobsCount integer($int32)
Number of pending jobs to be created in the environment, for the current process. This number must be greater than 0 only if the start strategy is JobsCount.

Strategy string
States which robots from the environment are being run by the process.
Enum:
[ All, Specific, RobotCount, JobsCount, ModernJobsCount ]

https://docs.uipath.com/orchestrator/reference/jobs-requests#starting-a-job