Defer ITems

Shweta

Active Member
Requirement is to defer the item which are marked as Business Exception, but that should run only once.
For example: If BOT is running for the first time, and some item is marked as Business Exception , then that will run one more time in next run and if in next run also, it goes in exception, then it will not run further. How to do that?
If I use defer, then that will run in every run once it crosses the time limit. Is there any other approach?
 

GatesV

Member
You could perhaps use the Status of the item to identify that you already have processed this item once, so you know that you shouldn't deffer it again.
 

Shweta

Active Member
You could perhaps use the Status of the item to identify that you already have processed this item once, so you know that you shouldn't deffer it again.
Will this pick the previous day's unprocessed item again in next run?
Also, if it does, then it should not run another time if it fails again.
 

GatesV

Member
I'm not sure if the status remains after its been deferred, but if it does, when you load the item from the queue, identify if the status says that its been processed once. If it was, keep that information in a flag data item and do not defer it again if it fails once more.

Let us know if this works please.
 
Top