You should validate all geometry data, and fix any validation errors, before performing any spatial operations on the data.
The recommended procedure for loading and validating spatial data is as follows:
For detailed information about using any of these subprograms, see the usage notes in its reference information section.