Oracle Database Error Code ORA-31642 Description :
the following SQL statement fails: string
Error Cause:
An internal error was generated from package DBMS_METADATA.

How to Solve :
Contact Oracle Customer Support and report the error.