Oracle Error ORA-54621: TO_GEOMETRY: TOTAL_DIMENSIONALITY not same as in INIT operation

Oracle Error Message

ORA-54621: TO_GEOMETRY: TOTAL_DIMENSIONALITY not same as in INIT operation

Reason for the Error

The specified TOTAL_DIMENSIONALITY was invalid.

Solution

Ensure that the TOTAL_DIMENSIONALITY matches that specified in the call to the initialization operation.