MuleSoft · Web Service Consumer Connector

Maximum attribute size limit (524288) exceeded

Short answer

This error means a SOAP message has an XML attribute longer than the default limit of 524288 characters. Raise the limit with the system property mule.soap.maxAttributeSize.

VerifiedLast verified

01Error text

MuleSoft error
javax.xml.stream.XMLStreamException: Maximum attribute size limit (524288) exceeded

02Likely causes

  • An XML attribute in the SOAP message is larger than mule.soap.maxAttributeSize, which defaults to 524288 characters.

03How to fix it

  1. Set the system property mule.soap.maxAttributeSize to a value large enough for the attribute. The maximum is 2147483647.
  2. Set it to 0 or leave it unset to use the default.
  3. Restart or redeploy so the property takes effect.

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.