How to avoid loading items onto the queue twice if business exception and system exception occurred

Dear all

I have query like first time if I add 100 transactions to queue and processed it. After again run dispatcher
should not be added to the queue when it comes to system exception and business exception transactions.

Please help me on this

@Anil_Rajavarapu1

Before adding the item
Use get queue items and select business exception and system exception and check for the unique reference for that item if present…

So say a item with reference A failed you will get a count in get queue items…so do not add it again else add it

Cheers

If it’s possible can you please provide the logic

@Anil_Rajavarapu1

  1. Get queue items…select business exception and system exception…and in refernece give the id or reference you want to add next
  2. Use if condition and check outputofgetqueuitems.Count>0
  3. On then side dont add item…on else side add the item

Cheers

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