Oracle Error Message
ORA-19163: XPTY0004 – XQuery type mismatch: argument type mismatch: expected – ‘string’ got – ‘string’ for function ‘string’
Reason for the Error
The type of the arguments that were passed to the given function was not valid.
Solution
Fix the arguments to be of a type appropriate for the given function.