# Add Queue Item | Queue item violates the specific data JSON schema Error code: 1857

**URL:** <https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280>\
**Category:** Activities\
**Tags:** question, orchestrator, system, activities\
**Created:** [August 28, 2023, 12:46pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280 "2023-08-28T12:46:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio85](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sergio85/32/176630_2.png) [@sergio85](https://forum.uipath.com/u/sergio85)\
**Post date:** [August 28, 2023, 12:46pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/1 "2023-08-28T12:46:51Z")

</div>

Hi everyone,

Orchestrator: 2021.10.4  
Studio: 2021.10.3

I am using the JSON Schema Data in my Queue. I set incorrect input data to the queue to validate if my JSON Schema works correctly. I am getting the following error:

Queue item violates the specific data JSON schema Error code: 1857

I am expected to receive this error. However, this error message is not at all useful because you do not know which field is incorrect. My question is: Is there any option to set a specific “error message” pro Field in the JSON Schema so that the UiPath Orchestrator throws this particular error message?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [August 28, 2023, 12:51pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/2 "2023-08-28T12:51:27Z")

</div>

@sergio85

If you need specific then do the validations before uploading it

ideally it would not say which structure is wrong

cheers

---

<div class="post-metadata">

**Author:** ![sergio85](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sergio85/32/176630_2.png) [@sergio85](https://forum.uipath.com/u/sergio85)\
**Post date:** [August 28, 2023, 12:57pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/3 "2023-08-28T12:57:15Z")

</div>

Tks for your answer. If I understood correctly the benefit of the JSON Schema is to control invalid input data in the queue. If I validate it before to add in the queue, I am not using the benefit of this schema. We could avoid this validation in the workflow by means of this JSON Schema. I am trying to find a power reason to use JSON Schema instead of developing these validations before creating a queue item.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [August 28, 2023, 1:02pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/4 "2023-08-28T13:02:22Z")

</div>

@sergio85

Using json schema you are setting what values are to be present …but if the values are correct or not is something we need to decide I believe…valu validation is not done…but fields are validated

cheers

---

<div class="post-metadata">

**Author:** ![sergio85](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sergio85/32/176630_2.png) [@sergio85](https://forum.uipath.com/u/sergio85)\
**Post date:** [August 28, 2023, 1:09pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/5 "2023-08-28T13:09:07Z")

</div>

ok thanks again for your support. My question is: can we set up a specific error message in the JSON Schema Data?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [August 28, 2023, 1:46pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/6 "2023-08-28T13:46:41Z")

</div>

@sergio85

this is the json schema validatoor/generator and it does not have any custimizing of error messages

> **[JSON Schema Generator](https://jsonschema.net/)**
>
> JSON Schema Generator - automatically generate JSON schema from JSON.

You can explore if you want anything else

cheers

---

<div class="post-metadata">

**Author:** ![postwick](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/postwick/32/227083_2.png) [@postwick](https://forum.uipath.com/u/postwick)\
**Post date:** [August 28, 2023, 1:49pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/7 "2023-08-28T13:49:55Z")

</div>

You’re not listening to the problem he is saying. The error message isn’t specific about WHY it violates the schema. That’s all he’s asking about.

---

<div class="post-metadata">

**Author:** ![postwick](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/postwick/32/227083_2.png) [@postwick](https://forum.uipath.com/u/postwick)\
**Post date:** [August 28, 2023, 1:50pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/8 "2023-08-28T13:50:45Z")

</div>

Unfortunately no. This is a previously reported issue but so far no attention from UiPath.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [August 28, 2023, 1:56pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/9 "2023-08-28T13:56:35Z")

</div>

> [@Anil\_G](#):
>
> If you need specific then do the validations before uploading it
> 
> ideally it would not say which structure is wrong

That was the first reply as well…

even in last replied the same

> [@Anil\_G](#):
>
> it does not have any custimizing of error messages

cheers

---

<div class="post-metadata">

**Author:** ![postwick](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/postwick/32/227083_2.png) [@postwick](https://forum.uipath.com/u/postwick)\
**Post date:** [August 28, 2023, 2:02pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/10 "2023-08-28T14:02:25Z")

</div>

Doing validations before creating the queue item defeats the purpose of the schema. The point to the schema is that it does the validation for you. But when validation fails the error message isn’t detailed, and that’s the problem.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [August 28, 2023, 2:04pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/11 "2023-08-28T14:04:22Z")

</div>

@postwick

I agree with you…but because of limitations currently we need to validate and schema currently is being used only to check the content needed

chees

---

<div class="post-metadata">

**Author:** ![postwick](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/postwick/32/227083_2.png) [@postwick](https://forum.uipath.com/u/postwick)\
**Post date:** [August 28, 2023, 2:06pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/12 "2023-08-28T14:06:39Z")

</div>

> [@Anil\_G](#):
>
> currently we need to validate and schema currently is being used only to check the content needed

That’s what validation IS - checking the content needed. You use a Specific Data schema so you DON’T have to write a bunch of validations into your code.

---

<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:** [August 31, 2023, 2:07pm UTC](https://forum.uipath.com/t/add-queue-item-queue-item-violates-the-specific-data-json-schema-error-code-1857/576280/13 "2023-08-31T14:07:00Z")

</div>

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