Oracle Solution for Error ora-13030

Solution for Oracle Error ORA-13030

ORA-13030: Invalid dimension for the SDO_GEOMETRY object

What triggered the Error:

There is a mismatch between the dimension in the SDO_GTYPE and dimension in the SDO_GEOM_METADATA for the SDO_GEOMETRY object.

What should we do to fix it:

Verify that the geometries have valid dimensionality.