Oracle Message ORA-13047 - unable to determine ordinate count from table _SDOLAYER

ERRORunable to determine ordinate count from table _SDOLAYER
CAUSEAn SDO_GEOM function was unable to determine the number of ordinates for the SDO layer .
ACTIONVerify that the _SDOLAYER table has a valid value for the column SDO_ORDCNT. Then retry the operation.