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
javax.xml.stream.XMLStreamException: Maximum attribute size limit (524288) exceeded02Likely causes
- An XML attribute in the SOAP message is larger than
mule.soap.maxAttributeSize, which defaults to 524288 characters.
03How to fix it
- Set the system property
mule.soap.maxAttributeSizeto a value large enough for the attribute. The maximum is 2147483647. - Set it to
0or leave it unset to use the default. - Restart or redeploy so the property takes effect.
04Official documentation
→Related errors
- WSC:SOAP_FAULTWSC:SOAP_FAULT means the SOAP service returned a fault, or the response did not match the format in the WSDL. Read the fault text in error.errorMessage.payload.reason and the detail in error.errorMessage.payload.detail.
- MULE:STREAM_MAXIMUM_SIZE_EXCEEDEDMULE:STREAM_MAXIMUM_SIZE_EXCEEDED means a stream grew past the maximum size allowed for it, typically the in-memory buffer of a repeatable in-memory stream. Raise the buffer's maximum size, or use a streaming strategy that does not keep the content in memory.
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