---
title: STATE_KEY_SCHEMA_EVOLUTION_INVALID_CHECKPOINT error condition
description: Documentation for the STATE\_KEY\_SCHEMA\_EVOLUTION\_INVALID\_CHECKPOINT error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/state-key-schema-evolution-invalid-checkpoint-error-class
---

# STATE\_KEY\_SCHEMA\_EVOLUTION\_INVALID\_CHECKPOINT error condition

[SQLSTATE: 55019](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-55-object-not-in-prerequisite-state)

Cannot evolve the key columns of dropDuplicates or dropDuplicatesWithinWatermark.
The provided checkpoint location '`<checkpointLocation>`' is in an invalid state.

## LAST\_BATCH\_FAILED

The last batch ID `<lastBatchId>` is uncommitted and did not finish successfully.

Restart the query without changing the key columns so the batch commits, then retry the key schema change.

## NO\_BATCH\_FOUND

No microbatch has been recorded in the checkpoint location.

Run the streaming query until at least one microbatch completes, then retry the key schema change.

## NO\_COMMITTED\_BATCH

There is no committed microbatch.

Run the streaming query until at least one microbatch completes, then retry the key schema change.

## OFFSET\_SEQ\_NOT\_FOUND

Offset sequence entry for batch ID `<batchId>` not found in the checkpoint's offset log.

Restart the query with a new checkpoint location.

## UNSUPPORTED\_OFFSET\_SEQ\_VERSION

Unsupported offset sequence version `<version>` in the checkpoint's offset log.

Restart the query with a new checkpoint location.
