Invalid Enum Variant

This error indicates the right-hand side in an enum assignment is invalid. For example an enum such as TYPE Color : (red := 0, green := 1, blue := 2); END_TYPE can only take values which (internally) yield a literal integer 0, 1 or 2.