Oracle Message ORA-13341 - a line geometry has fewer than two coordinates

ERRORa line geometry has fewer than two coordinates
CAUSEA geometry, specified as being a line, has fewer than two coordinates in its definition.
ACTIONA line must consist of at least two distinct coordinates. Correct the geometric definition, or set the appropriate SDO_GTYPE or SDO_ETYPE attribute for this geometry.