Oracle Solution for Error ora-31228

Solution for Oracle Error ORA-31228

ORA-31228: DBMS_LDAP: invalid MOD_ARRAY

What triggered the Error:

An attempt was made by a PL/SQL module to use a MOD_ARRAY which is not valid and might have already been freed.

What should we do to fix it:

Check the MOD_ARRAY in PL/SQL module involving DBMS_LDAP.