Swagger-UI BulkAddQueueItems giving error "bulkAddQueueItemsParameters must not be null"

Hello I am trying to Bulk add queue items using swagger UI connected to orchestrator, in the given code when I pass my values for a single queue item, they are successfully added to the queue. But when I add multiple rows in the “specific content” field by passing data in array format with key value pair, tweaking the syntax so that there is no error, I get a response saying “bulkAddQueueItemsParameters must not be null”, I would appreciate if anyone could guide me how can I add queue items in bulk rather than one at a time.
Thanks.
PS I know about the bulk add queue Item Activity, but I wan to use HTTP request activity to do this task.

Please try using Postman before using in UiPath

I have completed this task in Postman by passing my Queue Items (multiple queue items) in a single request, but when I use Studio activity for HTTP request with my serialized json body it gives the error “bulkAddQueueItemsParameters Must Not Be Null” with error code 0, but error status is 400. I first save the serialized body in text file, then I copied and pasted the text file’s content to postman as well as Swagger, it correctly passes the data without any issue. Once I got an error while using Orchestrator HTTP request activity that said “API version Does not support POST” something like this. My WebApi.Activities version is 11, whereas orchestrator integrated Swagger-UI version is 16

Here is how anyone that gets this error can resolve it:
You need to create a dictionary variable of your data, filling all the necessary parameters as shown in Swagger-UI, if you have multiple data as in the case of bulk add data queue items, you can create a new dictionary of all the rows/queue items and then convert it to List within the dictionary. Then serialize the dictionary variable with JsonConvert.Serialize(dictionary) then deserialize it with “Deserialize JSON” activity and store it in a JObject format. Then pass it into the HTTP request body, MINDING that the “Body Format” property is set to “application/JSON”

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