MuleSoft · Scatter-Gather router

MULE:COMPOSITE_ROUTING

Short answer

MULE:COMPOSITE_ROUTING means one or more routes of a Scatter-Gather router failed. The error gathers the errors from the failed routes and the Mule events from the routes that succeeded, so inspect its failures to find which route broke.

VerifiedLast verified

01Error text

MuleSoft error
Error type: MULE:COMPOSITE_ROUTING

02Likely causes

  • One or more errors occurred while routing a message. When a route fails, the Scatter-Gather component throws an error of this type.
  • A route did not finish before the router's timeout expired. That route throws a MULE:TIMEOUT error, which is then collected here.

03How to fix it

  1. Read the failures the error carries. For example, #[error.errorMessage.payload.failures['0'].errorType] returns the error type of the first route.
  2. Fix the error inside the route that failed.
  3. To handle errors that a route's processors generate, use a Try scope in each route of the Scatter-Gather component.
  4. If routes time out, review the router's timeout attribute. It is in milliseconds, and a value of 0 or lower means no timeout.
  5. Handle the remaining cases with an error handler of type MULE:COMPOSITE_ROUTING.

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.