ORA-19161: XPTY0004 - XQuery type mismatch: invalid argument type 'string' for function 'string' Cause: The type of the argument that was passed to the given function was not valid. Action: Fix the argument to be of a type supported by the given function.