X++:
public void run()
{
#OCCRetryCount
WMSTransport WMSTransport;
setprefix(WMSTransportCancel::description());
try
{
ttsbegin;
WMSTransport = WMSTransport::find(WMSTransportId, true);
WMSTransport.cancel();
ttscommit;
}
catch (Exception::Deadlock)
{
retry;
}
catch (Exception::UpdateConflict)
{
if (appl.ttsLevel() == 0)
{
if (xSession::currentRetryCount() >= #RetryNum)
{
throw Exception::UpdateConflictNotRecovered;
}
else
{
retry;
}
}
else
{
throw Exception::UpdateConflict;
}
}
}
Вылетает изза кода
if (xSession::currentRetryCount() >= #RetryNum) После нескольких неудачных попыток удалить.
Как отловить причину?