Oracle Solution for Error ora-06502

Solution for Oracle Error ORA-06502

ORA-06502: PL/SQL: numeric or value errorstring

What triggered the Error:

An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).

What should we do to fix it:

Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.