---
title: STREAMING_UNRESUMABLE_CONTROL_BATCH_DETECTED error condition
description: Documentation for the STREAMING\_UNRESUMABLE\_CONTROL\_BATCH\_DETECTED error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/streaming-unresumable-control-batch-detected-error-class
---

# STREAMING\_UNRESUMABLE\_CONTROL\_BATCH\_DETECTED error condition

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

Unfinished control batch `<batchId>` cannot be resumed.

## REPARTITION

Repartition batch has `<unfinishedNumPartition>` state partitions but the current query is requesting `<requestedNumPartition>`.

Set spark.sql.streaming.stateStore.partitions to `<unfinishedNumPartition>`, and rerun the query. Once that repartition finishes successfully, then you can change it to `<requestedNumPartition>`

## SET\_CHECKPOINT\_PROPERTIES

Session conf `<confKey>` does not match the value `<confValue>` required by the pending batch for query `<queryId>`.
