Oracle Error Message
ORA-26869: must attach to an XStream inbound server before executing string function
Reason for the Error
An attempt was made to invoke the specified function before executing OCIXStreamInAttach call.
Solution
Add OCIXStreamInAttach call before the specified function.