Oracle Error ORA-22625: OCIAnyData is not well-formed

Oracle Error Message

ORA-22625: OCIAnyData is not well-formed

Reason for the Error

Attempt to use the OCIAnyData without initializing constructing it.

Solution

Use OCIAnyDataBeginConstruct to initialize the handle before it is adding attributes. Use OCIAnyDataEndConstruct to complete the construction. Or use OCIAnyDataConvert to do the construction. MAke sure it is properly constructed before accessing attributes.