Oracle Error Message
ORA-54502: solid not closed
Reason for the Error
The solid geometry was not closed i.e., faces of solid are not 2-manifold due to incorrectly defined, oriented, or traversed line segment because each edge of a solid must be traversed exactly twice, once in one direction and once in the reverse direction.
Solution
Correct the orientation of the edges of the neighboring polygons.