---
updatedAt: 2026-06-02T21:51:38.000Z
agentTools:
  projectIndex: https://docs.getmontecarlo.com/llms.txt
---

# Field Quality (deprecated)

Auto-converted to custom_sql as of August 2025. Old schema no longer works.

> **Auto-converted August 2025.** All field quality monitors were automatically converted to Custom SQL monitors. The old syntax (`type: null_count`, `table`, `field`) is rejected.

## What to use instead

Use a [Custom SQL Monitor](https://docs.getmontecarlo.com/docs/custom-sql) with an explicit SQL query. The auto-conversion already created `custom_sql` equivalents of your old monitors -- export them to get the new YAML.

```yaml
montecarlo:
  custom_sql:
    - name: orders_null_check
      description: Null check on orders.customer_id
      sql: |
        SELECT COUNT(*) FROM warehouse.analytics.orders
        WHERE customer_id IS NULL
      alert_conditions:
        - operator: GT
          threshold_value: 0
      schedule:
        type: fixed
        interval_minutes: 720
      domains:
        - my-domain
```

## Migration steps

1. Export auto-converted monitors in the latest format.
2. Replace `field_quality` definitions with the exported `custom_sql` definitions. Use the same `name` to preserve incident history.
3. Apply with `montecarlo monitors apply`.

```bash
montecarlo monitors export-as-latest --namespace <your-namespace>
```