Hi, I'm experiencing an issue where OData calls to the <server>/XRMServices/2011/OrganizationData.svc/ContactSet(guid'<guid>') are failing intermittently.
This issue is occurring in CRM 2015 On Premise, RTM & upgrade v0.2 (the only two versions I've tested).
I've reproduced this error locally and found the preconditions are this:
- Service is recovering from an App Pool recycle / IISReset / Startup event.
- Multithreaded or high-frequency calls. Just 5 simultaneous calls following a recycle will cause this.
Errors are varied and inconsistent, and only rarely occur:
- Random inconsistent responses (missing fields in output etc…)
- Errors such as “Collection was modified; enumeration operation may not execute.”
- Errors such as “The PropertyName property value '{0}' on more than one EntityPropertyMappingAttribute on resource type '{1}' is provided more than once.” (field names vary)
- Errors such as “The TargetName property '{0}' on more than one EntityPropertyMappingAttribute on resource type '{1}' have the same value. Conflicting properties are '{2}' and '{3}'.” (Again, field names vary)
The formal errors are raised in serialization code within CRM. I can supply a stack trace if required, but all errors indicate CRM's ORM failing on data load.
I can supply a test project to reproduce this error, if required.
Any suggestions gratefully received!