Oracle Error ORA-02437: cannot validate (string.string) – primary key violated

Oracle Error Message

ORA-02437: cannot validate (string.string) – primary key violated

Reason for the Error

attempted to validate a primary key with duplicate values or null values.

Solution

remove the duplicates and null values before enabling a primary key.