Oracle Error Message
ORA-19161: XPTY0004 – XQuery type mismatch: invalid argument type ‘string’ for function ‘string’
Reason for the Error
The type of the argument that was passed to the given function was not valid.
Solution
Fix the argument to be of a type supported by the given function.