# `data.repeated_field`

Unique rule or index lists a field twice.

Area 5, [Data](../topics/data.md); not declinable; the next step is usually the agent's.

```jadpo
entity Todo {
    id: Uuid
    due_at: Instant

    indexes: {
        by_due_at: [due_at, due_at]
    }
}
```

```text
error: The index `by_due_at` lists `due_at` twice
 --> main.jadpo:6:29
  |
6 |         by_due_at: [due_at, due_at]
  |                             ^^^^^^ listed again
  reason: Each field counts once in an index.
  next: Remove the second `due_at` (agent)
  rule: data.repeated_field
  help: https://jadpo.dev/docs/errors/data.repeated_field

check failed: 1 error, 1 file
```
