# Getting an error in Swagger API while executing Test Data Queues Query ("message": "testDataQueue must not be null",)

**URL:** <https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744>\
**Category:** Test Cloud\
**Tags:** feedback, test-manager, orchestrator\
**Created:** [28 Septiembre, 2022 16:00 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744 "2022-09-28T16:00:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dheerajdatastorage](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dheerajdatastorage/32/177805_2.png) [@dheerajdatastorage](https://forum.uipath.com/u/dheerajdatastorage)\
**Post date:** [28 Septiembre, 2022 16:00 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/1 "2022-09-28T16:00:51Z")

</div>

While executing Test Data Queue Query in Swagger as below:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/9/3/6/9361258fd5acdced7414eaae0f823e255d638a5b.png)

returns error:

| Code | Details |
| --- | --- |
| 400 | |

Error: Bad Request

##### Response body

{  
“message”: “testDataQueue must not be null”,  
“errorCode”: 0,  
“resourceIds”: null  
}

Response / Guidance are appreciated.

---

<div class="post-metadata">

**Author:** ![marian.platonov](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marian.platonov/32/260263_2.png) [@marian.platonov](https://forum.uipath.com/u/marian.platonov)\
**Post date:** [28 Septiembre, 2022 16:02 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/2 "2022-09-28T16:02:53Z")

</div>

Which is the Method and endpoint that you are using?

---

<div class="post-metadata">

**Author:** ![dheerajdatastorage](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dheerajdatastorage/32/177805_2.png) [@dheerajdatastorage](https://forum.uipath.com/u/dheerajdatastorage)\
**Post date:** [28 Septiembre, 2022 16:20 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/3 "2022-09-28T16:20:57Z")

</div>

using POST Method:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/9/7/09727439127d87529c4e6d4cdffebf4d511e8834.png)

---

<div class="post-metadata">

**Author:** ![marian.platonov](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marian.platonov/32/260263_2.png) [@marian.platonov](https://forum.uipath.com/u/marian.platonov)\
**Post date:** [28 Septiembre, 2022 18:03 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/4 "2022-09-28T18:03:38Z")

</div>

Try to see if this body is working for you:

```auto
{"Name":"Test_Data_Queue_2","Description":null,"ContentJsonSchema":"{\r\n \"Name\": \"string\",\r\n \"Description\": \"string\",\r\n \"ContentJsonSchema\": \"string\",\r\n \"ItemsCount\": 0,\r\n \"ConsumedItemsCount\": 0,\r\n \"IsDeleted\": true,\r\n \"DeleterUserId\": 0,\r\n \"DeletionTime\": \"2022-09-28T17:58:07.639Z\",\r\n \"LastModificationTime\": \"2022-09-28T17:58:07.639Z\",\r\n \"LastModifierUserId\": 0,\r\n \"CreationTime\": \"2022-09-28T17:58:07.639Z\",\r\n \"CreatorUserId\": 0,\r\n \"Id\": 0\r\n}"}

```

_Example:_

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/9/8/898bc5e01a93b3db56c38e314d36263136fd0b7b.png)

![image](https://global.discourse-cdn.com/uipath/original/4X/3/b/0/3b0fca5f8d78272733da4e0708b5b895961f885c.png)

---

<div class="post-metadata">

**Author:** ![dheerajdatastorage](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dheerajdatastorage/32/177805_2.png) [@dheerajdatastorage](https://forum.uipath.com/u/dheerajdatastorage)\
**Post date:** [29 Septiembre, 2022 06:07 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/5 "2022-09-29T06:07:52Z")

</div>

It’s working thanks. just need to convert JSON into string.  
you are too good bro.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [2 Octubre, 2022 06:08 UTC](https://forum.uipath.com/t/getting-an-error-in-swagger-api-while-executing-test-data-queues-query-message-testdataqueue-must-not-be-null/476744/6 "2022-10-02T06:08:19Z")

</div>

Cerrado el 2 Octubre, 2022 06:08 UTC

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