elastic/elasticsearch · error · IllegalArgumentException
[missing] must not be null: [{name}]
Error message
[missing] must not be null: [{name}] What it means
Error "[missing] must not be null: [{name}]" thrown in elastic/elasticsearch.
Source
Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java:169
this.format = formatArg;
return (AB) this;
}
/**
* Gets the format to use for the output of the aggregation.
*/
public String format() {
return format;
}
/**
* Sets the value to use when the aggregation finds a missing value in a
* document
*/
@SuppressWarnings("unchecked")
public AB missingMap(Map<String, Object> missingMapArg) {
if (missingMapArg == null) {
throw new IllegalArgumentException("[missing] must not be null: [" + name + "]");
}
this.missingMap = missingMapArg;
return (AB) this;
}
/**
* Gets the value to use when the aggregation finds a missing value in a
* document
*/
public Map<String, Object> missingMap() {
return missingMap;
}
@Override
protected final ArrayValuesSourceAggregatorFactory doBuild(
AggregationContext context,
AggregatorFactory parent,
Builder subFactoriesBuilderView on GitHub (pinned to db6a809a66)
When it happens
Trigger: Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java:169 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of elastic/elasticsearch@db6a809a66 (2026-08-12).
Data as JSON: /api/errors/fe83e0a913306e75.
Report an issue: GitHub.