{"record":{"id":"d78e719f1121ea66","repo":"elastic/elasticsearch","slug":"format-must-not-be-null-name","errorCode":null,"errorMessage":"[format] must not be null: [{name}]","messagePattern":"\\[format\\] must not be null: \\[(.+?)\\]","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java","lineNumber":149,"sourceCode":"        }\n        this.fields = fieldsArg;\n        return (AB) this;\n    }\n\n    /**\n     * Gets the field to use for this aggregation.\n     */\n    public List<String> fields() {\n        return fields;\n    }\n\n    /**\n     * Sets the format to use for the output of the aggregation.\n     */\n    @SuppressWarnings(\"unchecked\")\n    public AB format(String formatArg) {\n        if (formatArg == null) {\n            throw new IllegalArgumentException(\"[format] must not be null: [\" + name + \"]\");\n        }\n        this.format = formatArg;\n        return (AB) this;\n    }\n\n    /**\n     * Gets the format to use for the output of the aggregation.\n     */\n    public String format() {\n        return format;\n    }\n\n    /**\n     * Sets the value to use when the aggregation finds a missing value in a\n     * document\n     */\n    @SuppressWarnings(\"unchecked\")\n    public AB missingMap(Map<String, Object> missingMapArg) {","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java#L131-L167","documentation":"Error \"[format] must not be null: [{name}]\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"db6a809a667c081ca1dc7500389d26975573215f","analyzedAt":"2026-08-12T01:39:14.192Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}