Skip to main content

Error message

{context}: properties and items cannot both be specified

When this error occurs

Non-primitive nodes model either objects (with named children via properties) or arrays (with element config via items). A node cannot be both. This error is raised when both properties and items appear on the same node.

Example: request that triggers this error

{
  "defaults": {
    "enabled_stats": ["value_count"]
  },
  "refresh": { "trigger": "manual" },
  "dataset": {
    "fields": [
      {
        "field_name": "metadata",
        "properties": [
          {
            "path": "key",
            "enabled_stats": ["value_count"]
          }
        ],
        "items": {
          "enabled_stats": ["value_count"]
        }
      }
    ]
  }
}
The metadata field has both properties (object) and items (array).

How to fix

Use only the one that matches the field’s actual schema type: If the field is an object:
{
  "field_name": "metadata",
  "properties": [
    {
      "path": "key",
      "enabled_stats": ["value_count"]
    }
  ]
}
If the field is an array:
{
  "field_name": "metadata",
  "items": {
    "enabled_stats": ["value_count"]
  }
}