I’m trying to postpone certain exceptions that are thrown, but not all of them, and I’m wanting to somehow keep track of how many times the transaction Item has been retried, or postponed.
I tried using a condition such as
if(transactionItem.RetryNo < 2 OR IsNothing(transactionItem.RetryNo)
{
boolPostpone = True
}
else
{
boolPostpone = False
}
When I run this I get a null reference error. So the retryNo hasn’t been set. How do I set that, so that it is contained in memory on each retry and isn’t just null. Thanks for the help, I appreciate you all.