---
title: INVALID_CDC_OPTION error condition
description: Documentation for the INVALID\_CDC\_OPTION error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/invalid-cdc-option-error-class
---

# INVALID\_CDC\_OPTION error condition

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

Invalid Change Data Capture (CDC) option.

## CONFLICTING\_RANGE\_TYPES

Cannot specify both version and timestamp ranges for CDC queries. Use either `startingVersion`/`endingVersion` or `startingTimestamp`/`endingTimestamp`.

## INVALID\_DEDUPLICATION\_MODE

Invalid `deduplicationMode`: '`<mode>`'. Expected one of: none, dropCarryovers, netChanges.

## INVALID\_TIMESTAMP

The timestamp '`<timestamp>`' cannot be cast to `TIMESTAMP` type for CDC queries.

## INVALID\_TIMESTAMP\_EXPR

The timestamp expression for CDC queries must not contain subqueries.

## MISSING\_STARTING\_TIMESTAMP

`startingTimestamp` is required when `endingTimestamp` is specified for CDC queries.

## MISSING\_STARTING\_VERSION

`startingVersion` is required when `endingVersion` is specified for CDC queries.

## UPDATE\_DETECTION\_REQUIRES\_CARRY\_OVER\_REMOVAL

`computeUpdates` cannot be used with `deduplicationMode=none` on connector `<changelogName>` because the connector emits copy-on-write carry-over pairs (`containsCarryoverRows()` returns true) that would be silently mislabeled as updates. Set `deduplicationMode` to `dropCarryovers` or `netChanges`.
