{"record":{"id":"b56ccc9a3d45b087","repo":"elastic/elasticsearch","slug":"format-must-not-be-null-name-b56ccc","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/pipeline/DerivativePipelineAggregationBuilder.java","lineNumber":78,"sourceCode":"            gapPolicy = GapPolicy.readFrom(in);\n        }\n        units = in.readOptionalString();\n    }\n\n    @Override\n    protected void doWriteTo(StreamOutput out) throws IOException {\n        out.writeOptionalString(format);\n        boolean hasGapPolicy = gapPolicy != null;\n        out.writeBoolean(hasGapPolicy);\n        if (hasGapPolicy) {\n            gapPolicy.writeTo(out);\n        }\n        out.writeOptionalString(units);\n    }\n\n    public DerivativePipelineAggregationBuilder format(String format) {\n        if (format == null) {\n            throw new IllegalArgumentException(\"[format] must not be null: [\" + name + \"]\");\n        }\n        this.format = format;\n        return this;\n    }\n\n    public String format() {\n        return format;\n    }\n\n    public DerivativePipelineAggregationBuilder gapPolicy(GapPolicy gapPolicy) {\n        if (gapPolicy == null) {\n            throw new IllegalArgumentException(\"[gapPolicy] must not be null: [\" + name + \"]\");\n        }\n        this.gapPolicy = gapPolicy;\n        return this;\n    }\n\n    public GapPolicy gapPolicy() {","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/aggregations/src/main/java/org/elasticsearch/aggregations/pipeline/DerivativePipelineAggregationBuilder.java#L60-L96","documentation":"Error \"[format] must not be null: [{name}]\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/pipeline/DerivativePipelineAggregationBuilder.java:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"db6a809a667c081ca1dc7500389d26975573215f","analyzedAt":"2026-08-12T01:39:14.192Z","schemaVersion":2},"datasetVersion":"2026-08-12T12:31:55.035Z"}