# Difference between UniqueKey and Key

**URL:** <https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940>\
**Category:** Orchestrator\
**Tags:** queue-item, transaction-item, question, orchestrator\
**Created:** [May 31, 2024, 7:00pm UTC](https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940 "2024-05-31T19:00:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo\_Andrade](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/leonardo_andrade/32/263533_2.png) [@Leonardo\_Andrade](https://forum.uipath.com/u/Leonardo_Andrade)\
**Post date:** [May 31, 2024, 7:00pm UTC](https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940/1 "2024-05-31T19:00:26Z")

</div>

Hello guys, I wanna know the difference between the properties ‘Unique Key’ and ‘Key’ (which one never changes, even if the status change)of a transacion item of a queue. I need to choose one to be like a primary key, an ID that will be unique for each transaction item, so will be possible to distinguish each transaction item and find any duplicated rows in a historic CSV.

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [May 31, 2024, 7:05pm UTC](https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940/2 "2024-05-31T19:05:36Z")

</div>

In General you could achieve this with Reference Property

---

<div class="post-metadata">

**Author:** ![Leonardo\_Andrade](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/leonardo_andrade/32/263533_2.png) [@Leonardo\_Andrade](https://forum.uipath.com/u/Leonardo_Andrade)\
**Post date:** [May 31, 2024, 7:30pm UTC](https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940/3 "2024-05-31T19:30:45Z")

</div>

It could be, but I have queues that don’t use reference

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [May 31, 2024, 8:02pm UTC](https://forum.uipath.com/t/difference-between-uniquekey-and-key/744940/4 "2024-05-31T20:02:00Z")

</div>

Just checkout in swagger what alternates will serve

- id
- Key …

Some Keys are used for keeping track, when retry mechanism is triggered. So do also the rnd on a retry scenario case
