{"record":{"id":"99d5948553743399","repo":"elastic/elasticsearch","slug":"units-must-not-be-null-name","errorCode":null,"errorMessage":"[units] must not be null: [{name}]","messagePattern":"\\[units\\] 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":102,"sourceCode":"    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() {\n        return gapPolicy;\n    }\n\n    public DerivativePipelineAggregationBuilder unit(String units) {\n        if (units == null) {\n            throw new IllegalArgumentException(\"[units] must not be null: [\" + name + \"]\");\n        }\n        this.units = units;\n        return this;\n    }\n\n    public DerivativePipelineAggregationBuilder unit(DateHistogramInterval units) {\n        if (units == null) {\n            throw new IllegalArgumentException(\"[units] must not be null: [\" + name + \"]\");\n        }\n        this.units = units.toString();\n        return this;\n    }\n\n    public String unit() {\n        return units;\n    }\n\n    @Override","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/aggregations/src/main/java/org/elasticsearch/aggregations/pipeline/DerivativePipelineAggregationBuilder.java#L84-L120","documentation":"Error \"[units] must not be null: [{name}]\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/pipeline/DerivativePipelineAggregationBuilder.java:102 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"}