Error:

FRM-40735: ON-ERROR trigger raised unhandled exception ORA-6508

Cause:
This may be occur while opening forms after clone or if the CUSTOM.pll and CUSTOM.plx files may be missing or got corrupted.
One more reasons may be that the forms path is not properly defined.


Solution:


Copy  the custom.pll and custom.plx files  from backup location to the $AU_TOP/resource directory structure.

Verify that the $FORMS60_PATH or FORMS_PATH has the correct path to the resource directory in the SID_HOSTNAME.env file in APPL TOP.

i.e
FORMS60_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$AU_TOP/resource/US
export FORMS60_PATH

or

FORMS_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$AU_TOP/resource/US
export FORMS_PATH