Error message
Configuration contains 78 histogram leaves, which exceeds the maximum of 64
When this error occurs
The platform caps the total number of histogram-enabled primitive columns at 64 per configuration. This limit applies across both the dataset and Rosetta Stone namespaces combined. Every primitive leaf (string, integer, float, boolean, timestamp) that resolves to having thehistogram stat enabled counts toward this limit. Object and array columns themselves do not count — only their primitive children do.
This error is raised before saving the configuration, so no resources are wasted on an overly broad histogram setup.
Common causes
- Broad defaults with
histogramenabled — if defaults includehistogramand the dataset has many columns, every compatible column gets a histogram automatically. - Large nested objects — an object with many primitive properties, each inheriting
histogramfrom defaults or scope, can quickly exhaust the limit. - Both namespaces enabled — histograms on dataset columns plus Rosetta Stone attributes add up.
Example: request that triggers this error
Given a dataset with 50 primitive columns and 20 Rosetta Stone attributes (all primitive):How to fix
Reduce the number of histogram-enabled leaves below 64. Several strategies:Option A: Remove histogram from defaults, enable per-field
Move histogram out of defaults and enable it only on the fields that matter:Option B: Keep histogram in defaults, disable for one namespace
If you want histograms on dataset columns but not Rosetta Stone attributes:histogram.
Option C: Disable histogram on specific high-cardinality fields
Override individual fields to drop histogram while keeping defaults broad:enabled_stats that exclude histogram no longer count toward the limit. Unlisted fields still inherit from defaults.
Counting rules
- Only primitive types count:
StringType,LongType,DoubleType,BooleanType,TimestampTzType - Array items are excluded from the count (they are filtered at execution time)
- Object and array columns themselves do not count — only their primitive children
- The count spans both the
datasetandrosetta_stonenamespaces
Related errors
- Histogram Options Without Histogram Enabled — histogram options present but stat not enabled
- Invalid Histogram Bin Count — max_bins value out of range

