Skip to main content

Error message

{context}: duplicate property paths: {paths}
Example: dataset.fields[address].properties: duplicate property paths: city

When this error occurs

Each entry in a properties array must have a unique path. This error is raised when two or more entries share the same path within the same parent object node.

Example: request that triggers this error

{
  "defaults": {
    "enabled_stats": ["value_count"]
  },
  "refresh": { "trigger": "manual" },
  "dataset": {
    "fields": [
      {
        "field_name": "address",
        "properties": [
          {
            "path": "city",
            "enabled_stats": ["value_count"]
          },
          {
            "path": "city",
            "enabled_stats": ["approx_count_distinct"]
          }
        ]
      }
    ]
  }
}
city appears twice in the address properties array.

How to fix

Merge the duplicate entries into one:
{
  "field_name": "address",
  "properties": [
    {
      "path": "city",
      "enabled_stats": ["value_count", "approx_count_distinct"]
    }
  ]
}