Skip to main content

Error message

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

value_count appears twice in the defaults stat list.

How to fix

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