Message Oracle LSX-00158 - base type of ~S must be simple type or primitive datatype

ERRORbase type of ~S must be simple type or primitive datatype
CAUSEThe derivation constraint was violated.
ACTIONUse complexType instead of simpleType.