Oracle Solution for Error ora-13379

Solution for Oracle Error ORA-13379

ORA-13379: invalid index for sub-element to be extracted

What triggered the Error:

An invalid (or out of bounds) index was specified for extracting a sub-element from a geometry.

What should we do to fix it:

Make sure the parameters to the extract function are in the valid range for the geometry.