Oracle Message ORA-13030 - Invalid dimension for the SDO_GEOMETRY object

ERRORInvalid dimension for the SDO_GEOMETRY object
CAUSEThere is a mismatch between the dimension in the SDO_GTYPE and dimension in the SDO_GEOM_METADATA for the SDO_GEOMETRY object.
ACTIONVerify that the geometries have valid dimensionality.