Actually we have been asked not to make unique reference due to some scenarios.
Thing is once one email is received it has an order# in the subject line. Bot is fetching that email and inserting into the queue. In Process state our job is to check if we have eceived any respnse of that email (for that order#). If yes fine but if not then that transaction item output parameter will set as Pending, but that transaction item will be marked as Success in the Set Transaction Status. So we are making the entire email chain of that order# as Unread. And then in the next BOT run again we are entering that email into the queue so that it can check in the Process state if we have received any response or not. If yes fine else mark it Pending.
So in this case for the same email (order#) its again and again marking the same record as Pendng making duplicate records till the time one response is received for that email. SO how can we prevent that.
Insght dashboard automatically takes the records from the queue so it has multiple records as Pending (repeating as duplicates). How can we prevent that ?