ERROR

DBMS error: the INSERT statement conflicted with the CHECK constraint

Last Published: April 25, 2020

Error Message

Attempts to edit a feature class in an enterprise geodatabase, such as creating new features, fails and returns the following error:

Error:
Underlying DBMS error: The INSERT statement conflicted with the CHECK constraint
The sample image of the error message

Cause

The issue occurs if the spatial index of the feature class is not calculated properly, or is wrongly calibrated. Refer to the following web help document, ArcGIS Desktop: Spatial indexes in the geodatabase for more information on spatial indexes.

Solution or Workaround

The following steps describe how to recalculate the spatial index on the feature class:
  1. Identify and locate the feature class name from the error message in ArcCatalog.
  2. Right-click the feature and select Properties to open the Feature Class Properties window.
  3. Click the Indexes tab.
  4. Under the Spatial Index section, click Recalculate.
The image of the Feature Class Properties window.

Article ID:000021896

Software:
  • ArcMap
  • ArcGIS Pro 2 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic