# S07002 {#S07002}

## Error Code {#error_code .section}

S07002

## Error Message {#error_message .section}

`Cannot insert record with duplicate key 'x' because the table enforces uniqueness on column(s) 'xx'. RefId: S07002`

## Probable Causes {#probable_causes .section}

This error occurs when the data inserted into a table in an IMOLTP database enforcing uniqueness contains keys duplicated with the existing data in the table.

## Solutions {#solutions .section}

Ensure that the data to be inserted is not duplicated with the existing data in the table.

**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

