# RollupJobConfigurationException: Rollup job configuration validation failed

- **ID:** `elasticsearch/rollup-job-configuration-error`
- **Domain:** elasticsearch
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 82%

## Root Cause

The rollup job configuration has invalid field mappings, missing required fields, or incompatible date histograms.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| elasticsearch 8.12 | active | — | — |
| elasticsearch 8.13 | active | — | — |
| elasticsearch 7.17 | active | — | — |
| opensearch 2.11 | active | — | — |

## Workarounds

1. **Verify that all fields in the rollup config exist in the source index with correct types. Example: GET my_source_index/_mapping/field/date_field** (90% success)
   ```
   Verify that all fields in the rollup config exist in the source index with correct types. Example: GET my_source_index/_mapping/field/date_field
   ```
2. **Use the rollup capability API to check supported fields: GET _rollup/job/my_rollup_job/_capabilities** (80% success)
   ```
   Use the rollup capability API to check supported fields: GET _rollup/job/my_rollup_job/_capabilities
   ```
3. **Recreate the rollup job with corrected config: PUT _rollup/job/my_rollup_job { "rollup": { "index_pattern": "source-*", "rollup_index": "rollup-*", "cron": "*/5 * * * * ?", "page_size": 1000, "groups": { "date_histogram": { "field": "timestamp", "fixed_interval": "1h" } }, "metrics": [ { "field": "value", "metrics": ["avg", "sum"] } ] } }** (85% success)
   ```
   Recreate the rollup job with corrected config: PUT _rollup/job/my_rollup_job { "rollup": { "index_pattern": "source-*", "rollup_index": "rollup-*", "cron": "*/5 * * * * ?", "page_size": 1000, "groups": { "date_histogram": { "field": "timestamp", "fixed_interval": "1h" } }, "metrics": [ { "field": "value", "metrics": ["avg", "sum"] } ] } }
   ```

## Dead Ends

- **** — The configuration is still invalid; recreation does not fix the underlying validation issue. (90% fail)
- **** — This affects indexing, not rollup job validation; rollup checks field types at config time. (80% fail)
- **** — Validation failure is not a timeout issue; timeout increase does not resolve invalid config. (95% fail)
