---
title: AUTOCDC_INVALID_STATE error condition
description: Documentation for the AUTOCDC\_INVALID\_STATE error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/autocdc-invalid-state-error-class
---

# AUTOCDC\_INVALID\_STATE error condition

[SQLSTATE: 42000](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-42-syntax-error-or-access-rule-violation)

Detected an invalid AutoCDC state for target table `<tableName>`:

## AUXILIARY\_TABLE\_KEY\_COLUMN\_MISSING

The internal auxiliary table is missing key column `<keyColumnName>` that is recorded in its `<propertyName>` table property. The auxiliary table schema may be corrupted or have been modified externally. Perform a full refresh of the target table to recreate the auxiliary table.

## AUXILIARY\_TABLE\_PROPERTY\_MALFORMED

The internal auxiliary table has a malformed `<propertyName>` property with raw value '`<rawValue>`'. The property must be a `JSON` array of strings (for example, '\["id","region"]'). The auxiliary table metadata may be corrupted or have been modified externally. Perform a full refresh of the target table to recreate the auxiliary table.

## AUXILIARY\_TABLE\_PROPERTY\_MISSING

The internal auxiliary table is missing the required `<propertyName>` table property; cannot validate the AutoCDC configuration. The auxiliary table metadata may be corrupted or have been modified externally. Perform a full refresh of the target table to recreate the auxiliary table.

## KEY\_SCHEMA\_DRIFT

One or more AutoCDC flows writing to the target use key columns `<expectedKeySchema>`, which are inconsistent with the keys recorded for it (recorded `<recordedKeySchema>`). AutoCDC does not support changing key columns or their types across incremental pipeline runs. Correct the conflicting flow(s) or perform a full refresh of the target table.

## SCD\_TYPE\_DRIFT

One or more AutoCDC flows writing to the target use SCD type `<expectedScdType>`, which is inconsistent with the SCD type recorded for it (recorded `<recordedScdType>`). AutoCDC does not support changing a target's SCD type across incremental pipeline runs. Correct the conflicting flow(s) or perform a full refresh of the target table.

## SEQUENCING\_TYPE\_DRIFT

One or more AutoCDC flows writing to the target use a sequencing expression of type `<expectedSequencingType>`, which is inconsistent with the sequencing type recorded for it (recorded `<recordedSequencingType>`). The sequencing expression may change across incremental pipeline runs, but its result type must not, so recorded sequencing values remain comparable. Correct the conflicting flow(s) or perform a full refresh of the target table.

## TRACK\_HISTORY\_DRIFT

One or more AutoCDC flows writing to the target track history on columns \[`<expectedTrackHistoryColumns>`], which are inconsistent with the track-history columns recorded for it (recorded \[`<recordedTrackHistoryColumns>`]). AutoCDC does not support changing the SCD Type 2 track-history columns across incremental pipeline runs. Correct the conflicting flow(s) or perform a full refresh of the target table.
