The LOB_CONTEXT_ID argument is validated to the extent possible. If the argument is not valid, the request that invoked the UDF, UDM, or external stored procedure fails and typically returns an error that looks like this:
7554 Invalid CONTEXT_ID argument to LOB access function in UDF database_name.udf_name.
Control does not return to the UDF, UDM, or external stored procedure.