MuleSoft · DataWeave

Stack Overflow. Max stack is 256

Short answer

Stack Overflow. Max stack is 256 means a DataWeave function recursed deeper than the stack limit allows. Rewrite the recursion so it goes less deep, or raise the limit with the com.mulesoft.dw.stacksize property.

VerifiedLast verified

01Error text

MuleSoft error
Stack Overflow. Max stack is 256

02Likely causes

  • A function recursed too deeply.

03How to fix it

  1. Find the recursive function in the script.
  2. Check that the recursion has an end condition that the input really reaches.
  3. If the depth is legitimate, raise the limit with the system property com.mulesoft.dw.stacksize.

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.