Error Handling, Retries, Queued & Failed Messages

Retrying of Failed Messages

If a message fails for any reason, it will be retired by the AS2Gateway upto a configurable number of retries, where each retry duration is computed using a Geometric Series, using an initial delay and multiplication factor. A final ceiling value will limit the maximum retry delay where applicable, and the number of retries will take place according to the retry intervals computed by the Geometric Series.

  • Current Retry Duration = Last Retry Duration == null ? Initial Duration : max( (Last Retry Duration * Progression Factor), Maximum Duration)

As an example, if the initial duration is 5 minutes, progression factor = 2.0 and the maximum duration 300 minutes, the message will be retried 10 times at:

  • 0 min, 5 min, 10 min, 20 min, 40 min, 80 min, 160 min, 300 min, 300 min, 300 min, 300 min

Handling Failures

Once a message is submitted, it will appear in the 'Queued Messages' box until its sending process successfully completes. If an error is encountered, the message will be retried automatically as per applicable retry rules. However, the user can manually trigger a retry by clicking on the 'Retry Now' button.

queued messages

The 'Failures' column will link to show detailed information about the errors encountered as shown below.

error message 1

If a message is considered as failed permanently, its placed into the 'Failed Messages' box, and will not be available for retry.

failed messages

The linked message view of a failed message will display more details about the message as follows:

failed message
In this topic
In this topic
Contact Us