It happens on occasion that CRM creates cases with duplicate Case Reference numbers, especially when using SOAP integration and pushing bulk cases to CRM. This can be avoided by making a small change in the Stored Procedure that gets used to generate…