Duplicate queue items past retention

Hi all,

Just had an issue where an item is being raised to a queue as a duplicate because Get Queue Items is not returning items that have gone past retention.

The queue allows duplicates because it is used for two different streams - one of which allows duplicates. Therefore changing this is not possible. This is why we use Get Queue Items to check for this instead of using a catch.

Is there a way to retrieve a list of used references? It must exist because on queues where duplicates are not allowed this still works even past retention.

Thanks!

@TJTheBuilder

you can get those items only if you choose archive and give it a storage bucket..the items would be stored there

cheers

  • Get Queue Items only returns items that are within the configured retention period. Once items are purged, they are no longer accessible via activities or APIs.
  • Queue unique reference validation (when duplicates are not allowed) is enforced internally at database level and works even after retention, but those historical references are not exposed for querying.
  • There is no supported method to retrieve a list of previously used references once items are past retention.
  • If required you can maintain records in DB where conditional duplicate checks are required.

Hi @TJTheBuilder

As per my knowledge there is no way to retrieve used references past retention as Orchestrator permanently deletes them. unique Reference works only while items exist within retention.
For checks beyond retention you must maintain references externally, for example in a database or file.

If helpful, mark as solution. Happy automation with UiPath

Yeah but you can’t just Get Queue Items to get them. They’re in a CSV inside a Zip file in the Storage Bucket.

@loginerror it has been years since everyone pointed out the massive problems your forced retention policies are causing, yet they persist. Any plans on doing anything about them? For some like us it’s literally a legal/regulatory issue.

Hi @TJTheBuilder

After retention, queue items are deleted and Get Queue Items can’t return them. Even though queues with duplicates disabled still block old references, that internal reference check isn’t exposed.

There’s no way to retrieve used references beyond retention, so the only option is to store references externally (DB, file, asset) and validate against that.