# KAFKA:RETRY_EXHAUSTED in MuleSoft: cause and fix

Source page: https://ipaaserrors.com/mulesoft/kafka-retry-exhausted
Platform: MuleSoft · Apache Kafka Connector · Code KAFKA:RETRY_EXHAUSTED
Checked against vendor docs: 2026-12-02

KAFKA:RETRY_EXHAUSTED means a Kafka operation failed and kept failing until its maximum number of retries was reached. Look at the error that caused the retries, since that is what needs fixing.

## Error text

```
Error type: KAFKA:RETRY_EXHAUSTED
```

## Likely causes

- The maximum number of retries for the operation is reached.

## How to fix it

1. Check the logs for the error raised on each retry; that underlying error is the real cause.
2. Fix that cause, for example broker connectivity or configuration.
3. Raise the retry count only if the failures are short-lived.

## 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 Apache Kafka Connector](https://docs.mulesoft.com/kafka-connector/latest/kafka-connector-troubleshooting)

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