MuleSoft · Until Successful scope

MULE:RETRY_EXHAUSTED

Short answer

MULE:RETRY_EXHAUSTED means every retry of an execution block failed, most often an Until Successful scope whose final retry did not succeed. Fix the error that the processors inside the scope keep raising, or adjust maxRetries and millisBetweenRetries.

VerifiedLast verified

01Error text

MuleSoft error
Message: 'until-successful' retries exhausted.

Error type: MULE:RETRY_EXHAUSTED

02Likely causes

  • The retries of an execution block have been exhausted. If the final retry of an Until Successful scope does not succeed, the scope produces this error.
  • The processors inside the scope fail on every attempt, so retrying alone cannot succeed.
  • The retry settings give the remote system too little time to recover: maxRetries is too low or millisBetweenRetries is too short.

03How to fix it

  1. Find the underlying error. The log shows a line such as Retrying execution of event, attempt 1 of 5 for each attempt.
  2. Fix that underlying error first, for example the connectivity or timeout problem of the operation inside the scope.
  3. If the failure is temporary, raise maxRetries or millisBetweenRetries on the Until Successful scope. millisBetweenRetries defaults to 60000, which is one minute.
  4. Handle the final failure with an error handler of type MULE:RETRY_EXHAUSTED, for example <on-error-continue type="RETRY_EXHAUSTED">.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.