Oracle Error Message
ORA-13031: Invalid Gtype in the SDO_GEOMETRY object for point object
Reason for the Error
There is an invalid SDO_GTYPE in the SDO_GEOMETRY object where the VARRAYs are NULL but the SDO_GTYPE is not of type POINT.
Solution
Verify that the geometries have valid gtypes.