Oracle Message ORA-19158 - FODC0004: invalid argument to fn: collection()

ERRORFODC0004: invalid argument to fn: collection()
CAUSEAn error occurred during the processing of the XQuery expression.
ACTIONCheck the detailed error message for the possible causes.