Message Oracle LSX-00161 - disallowed type substitution between ~S and ~S

ERRORdisallowed type substitution between ~S and ~S
CAUSEThere was a substituted type whose deriving method falls in the union of the {disallowed substitutions} and the {type definition}s {prohibited substitutions}.
ACTIONRemove the offending deriving method from the elements {disallowed substitutions} list or the {type definition}s {prohibited substitutions} list.