Oracle Solution for Error ora-13034

Solution for Oracle Error ORA-13034

ORA-13034: Invalid data in the SDO_ORDINATE_ARRAY in SDO_GEOMETRY object

What triggered the Error:

There is invalid data in the SDO_ORDINATE_ARRAY field of the SDO_GEOMETRY object. The coordinates in this field do not make up a valid geometry. There may be NULL values for X or Y or both.

What should we do to fix it:

Verify that the geometries have valid data.