# Add Queue Items - Adding Duplicate Items After Set Reference Issue

**URL:** <https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640>\
**Category:** Activities\
**Tags:** orchestrator\
**Created:** [June 27, 2022, 11:48am UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640 "2022-06-27T11:48:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrenivasanKanna](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srenivasankanna/32/523339_2.png) [@SrenivasanKanna](https://forum.uipath.com/u/SrenivasanKanna)\
**Post date:** [June 27, 2022, 11:48am UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/1 "2022-06-27T11:48:21Z")

</div>

Hi ,

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/9/f/39f7e687ceb4a69e7eee790330c235813b8cec98.png)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/8/2/e82d9cdbb7d40da3b23db93b60a1f3f4951ec633.png)

I have set **a unique account number** into Add queue Item ‘ **reference** ’ Property field.

When I run the bot sometime, it’s not updating duplicates, but few times it’s updating Duplicate entry, event though the previous item was in ‘New’ Status.

Any Guess?

---

<div class="post-metadata">

**Author:** ![Rajeswari24](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rajeswari24/32/314911_2.png) [@Rajeswari24](https://forum.uipath.com/u/Rajeswari24)\
**Post date:** [June 27, 2022, 11:58am UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/2 "2022-06-27T11:58:36Z")

</div>

Hi @SrenivasanKanna

Can you please confirm whether you have selected Unique Reference as “yes” while creating the queue?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/0/e/00e43d95c6a389ad2e411b93e3373ef07af3bcef.png)

Regards,  
Rajeswari

---

<div class="post-metadata">

**Author:** ![muhammedyuzuak](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/muhammedyuzuak/32/370135_2.png) [@muhammedyuzuak](https://forum.uipath.com/u/muhammedyuzuak)\
**Post date:** [June 27, 2022, 12:11pm UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/3 "2022-06-27T12:11:31Z")

</div>

Hi @SrenivasanKanna,

Follow this suggestion when creating the queue. And go to your addtoqueue activity and mark the continueonError field as true. Because if an item comes in the same reference here, it will get an exception.

You can catch and pass this exception using try catch or you can set this field to true. Setting this field to true means you want to continue on other unlikely errors.

> [@Rajeswari24](#):
>
> Unique Reference as “yes”

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/d/a/6da6a165a1c05c38ddb8ccedfdab954ab78779ca.jpeg)

Regards,  
MY

---

<div class="post-metadata">

**Author:** ![SrenivasanKanna](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srenivasankanna/32/523339_2.png) [@SrenivasanKanna](https://forum.uipath.com/u/SrenivasanKanna)\
**Post date:** [June 27, 2022, 3:25pm UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/4 "2022-06-27T15:25:34Z")

</div>

Thank you! Got it.

---

<div class="post-metadata">

**Author:** ![SrenivasanKanna](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srenivasankanna/32/523339_2.png) [@SrenivasanKanna](https://forum.uipath.com/u/SrenivasanKanna)\
**Post date:** [June 27, 2022, 3:26pm UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/5 "2022-06-27T15:26:13Z")

</div>

Thank you! It Helps.🙂

---

<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:** [June 30, 2022, 3:26pm UTC](https://forum.uipath.com/t/add-queue-items-adding-duplicate-items-after-set-reference-issue/451640/6 "2022-06-30T15:26:31Z")

</div>

Closed on June 30, 2022, 3:26pm UTC

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