Oracle Solution for Error ora-02437

Solution for Oracle Error ORA-02437

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

What triggered the Error:

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

What should we do to fix it:

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