# S3:MALFORMED_XML in MuleSoft: cause and fix

Source page: https://ipaaserrors.com/mulesoft/s3-malformed-xml
Platform: MuleSoft · Amazon S3 Connector · Code S3:MALFORMED_XML
Checked against vendor docs: 2026-12-02

S3:MALFORMED_XML means the XML the Amazon S3 connector sent was malformed. Check the input that becomes the XML body, such as a lifecycle or tagging configuration.

## Error text

```
Error type: S3:MALFORMED_XML
```

## Likely causes

- The XML you send is malformed.

## How to fix it

1. Find the operation that failed and the input it sends.
2. Check that input for missing or invalid values.
3. Log the payload before the operation to see what is being sent.

## Notes

The MuleSoft troubleshooting page states the cause of this error type but gives no step-by-step fix. The steps above follow directly from that cause.

## Sources

- [Troubleshooting Amazon S3 Connector](https://docs.mulesoft.com/amazon-s3-connector/latest/amazon-s3-connector-troubleshooting)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/mulesoft/s3-malformed-xml and the vendor documentation above.
