KB Article #166269

Retry count in email notifications set to 0 (zero)

Problem

When outbound transfers fail, and an email notification is generated and sent out, the number of retries is always set to 0 (zero).


How can this be improved to display the correct number of retries?

Resolution

The environment variables DXAGENT_PERSISTED_EVENT_LAST_CHANCE and DXAGENT_PERSISTED_EVENT_RETRY_COUNT, which are used in the email message rendering, show how many times the current event had been retried and not how many times the transfer that this event was thrown for had been retried.


For this reason the number is incorrect in the email notification, which are send upon event type 'Outgoing Error'.


The number of retries is available in the message body only when the events Server Transfer - Pull and Server Transfer - Push are used, because their retries match the number of the transfer retries.