This error occurs if a pseudotype has been used in a context in which it is not valid; for example, it is invalid to use the pseudotype MemberType when the current class is not a collection (and therefore does not have a membership type).
Action
Change your application code to remove or correct the invalid pseudotype.