Oracle Solution for Error ora-13341

Solution for Oracle Error ORA-13341

ORA-13341: a line geometry has fewer than two coordinates

What triggered the Error:

A geometry, specified as being a line, has fewer than two coordinates in its definition.

What should we do to fix it:

A 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.