---
title: QUERY_BASED_CONNECTOR_DUPLICATE_RECORDS error condition
description: Documentation for the QUERY\_BASED\_CONNECTOR\_DUPLICATE\_RECORDS error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/query-based-connector-duplicate-records-error-class
---

# QUERY\_BASED\_CONNECTOR\_DUPLICATE\_RECORDS error condition

[SQLSTATE: KD000](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-kd-datasource-specific-errors)

Duplicate \_\_databricks\_id for `<tableName>`, which does not have a primary key. Found `<count>` rows for key `<key>`. This may be due to duplicate records or a hash collision.

## FULL\_REFRESH\_MAY\_RESOLVE

Run a full refresh of the table, which may resolve the issue. If the failure persists, the source contains duplicate records that must be removed before ingestion can succeed.

## SOURCE\_HAS\_DUPLICATES

The source contains duplicate records that must be removed before ingestion can succeed.
