Use the persistent object reference that FNC_LobLoc2Ref creates to copy LOB values into the intermediate storage required for aggregate UDFs.
The arguments are validated to the extent possible. If an argument is not valid, the request that invoked the UDF fails and typically returns an error that looks like this:
7554 Invalid CONTEXT_ID LOCATOR argument to LOB access function in UDF database_name.udf_name.
Control does not return to the UDF.