Cause
This error occurs if your application code attempts to place an object in a collection that is not an instance of the class, or any of its subclasses, stored by the collection.
Objects that can be put in collections must be defined in the schema, by specifying the class of objects that the collection can hold.
Action
Redefine the collection definition to the correct class, or change the application code that resulted in this error.