# KAFKA:OUT_OF_RANGE in MuleSoft: cause and fix

Source page: https://ipaaserrors.com/mulesoft/kafka-out-of-range
Platform: MuleSoft · Apache Kafka Connector · Code KAFKA:OUT_OF_RANGE
Checked against vendor docs: 2026-11-30

KAFKA:OUT_OF_RANGE means the consumer's offsets are outside the range the broker holds for the partition, and no offset reset policy is defined. Set an offset reset policy, or seek to a valid offset.

## Error text

```
Error type: KAFKA:OUT_OF_RANGE
```

## Likely causes

- There is no reset policy defined, and the offsets for these partitions are either larger or smaller than the range of offsets the server has for the given partition.

## How to fix it

1. Define an offset reset policy (for example earliest or latest) in the consumer configuration.
2. Or seek to an offset within the partition's current range.

## 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-out-of-range and the vendor documentation above.
