# X_JOB_ROLLUP_INVALID

## Means

a rollup declaration cannot be run

## Typical cause

rollup() was declared without a finite lookback, without a bucket (a series unit and an IANA zone), with an empty key, or with a key no unique constraint on the into entity covers

## Fix

`rollup({ name, into, table, key: ['orgId', 'postId', 'day'], lookback: '2d', bucket: { unit: 'day', timeZone: 'UTC' }, source, map, tenant }) — a lookback, a bucket, and a key a unique index on into covers`

[Jobs](/error-codes#jobs)
