CRM 2011 KeyNotFoundException exception
问题 I am new to CRM development. I have a Custom Entity "customer". This Entity has a Field called "defaultcustomer", which can be TRUE or FALSE. I am working on a Plug-In where i need to set the "defaultcustomer" to FALSE for all the "Customers". I am doing it as below: FACTS: I have registered the plugin for the entity "customer" itself. So when the Entity "customer" is updated, the plugin fires. private void MakeAllNonDefault() { try { QueryExpression query = new QueryExpression("customer");