Cause
This error occurs if you attempt to specify as a dictionary key a property that is not valid as a key. This can be for one of the following reasons.
The property can identify a collection rather than a single object reference or primitive attribute.
The property is a variable length
The property has the virtual attribute.
The property is a mapped property that is defined in the RootSchema.
Action
Change the key definition to refer to a valid property.