Oracle Error ORA-14063: Unusable index exists on unique/primary constraint key

Oracle Error Message

ORA-14063: Unusable index exists on unique/primary constraint key

Reason for the Error

User attempted to add or enable a primary key/unique constraint on column(s) of a table on which there exists an index marked Index Unusable.

Solution

Drop the existing index or rebuild it using ALTER INDEX REBUILD