Oracle Message OCI-22132 - hexadecimal string does not correspond to a valid REF

ERRORhexadecimal string does not correspond to a valid REF
CAUSEThe given hexadecimal string is invalid.
ACTIONProvide a valid hexadecimal string which was previously returned by a call to OCIRefToHex().