> ## Documentation Index
> Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Duplicate Statistics

> The same stat name appears more than once in an enabled_stats list

## Error message

```
{context}: duplicate stats: {stat_names}
```

Example: `defaults: duplicate stats: value_count`

## When this error occurs

Each `enabled_stats` array must contain unique entries. This error is raised when the same stat name appears two or more times at any level — defaults, namespace scope, field override, or nested node.

## Example: request that triggers this error

```json theme={null}
{
  "defaults": {
    "enabled_stats": ["value_count", "null_value_count", "value_count"]
  },
  "refresh": { "trigger": "manual" }
}
```

`value_count` appears twice in the defaults stat list.

## How to fix

Remove the duplicate entries:

```json theme={null}
{
  "defaults": {
    "enabled_stats": ["value_count", "null_value_count"]
  },
  "refresh": { "trigger": "manual" }
}
```

The `{context}` prefix in the error message tells you exactly where the duplicate was found (e.g., `defaults`, `dataset.scope`, `dataset.fields[price]`).
