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.
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.
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
@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.
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.