Hi,
I am facing the duplicate record error while creating child cases . This issue occurs when you try to create more that 1 child case. CRM Version is 9.0.2.2279.
Error code: 0x80040237
Is this any open defect in the platform ?
I already checked Parent Child Case mapping which doesn't seem to have any issues.
I would do a dummy post create plugin & check all the arrributes coming in target entity compared to new case creation record from CRM UI, Scribe, Child case & vanilla CRM case.
This will definitely strike a clue.
We disabled plugins and synchronous workflows but the issue still remains. There are no duplicate detection or SLA rules on the case entity. We are trying to create child cases through OOTB button on case form .
The parent cases are created via scribe , so I doubt that something is going wrong during the case creation. Investigating this. We are planning to raise a Microsoft ticket if not resolved today.
Hi,
How are you creating these child cases. Please share more info.
Verify if you have any plugin, WF, Action doing anything on case create, disable them one by one & troubleshoot.
Find out is there any duplicate detection rule enabled?
QueueItem, SLA, etc also has to be verified.
Checked this . There is no secondary key.
Please check if there is any secondary key.
Hi vijaykiran,
Have you added any upsert operations limitation in your process? If you’re inserting data, there is some possibility that a record with the same id value already exists in the system and your plugin may not want to update it. You could find such condition operation example form the official linkage which is used to prevent update in upsert.
{
"error":
{
"code":"",
"message":"A record with matching key values already exists.",
"innererror":{
"message":"Cannot insert duplicate key.",
"type":"System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",
"stacktrace":<stack trace removed for brevity>}
}
}
docs.microsoft.com/.../perform-conditional-operations-using-web-api
Hope it would help.
Regards
Johnny
Hi partner,
I have created three child cases on my pure environment successfully.
Is there any custom plug-ins or workflows with Case entity?
Best Regards
Leo
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,802 Super User 2024 Season 2
Martin Dráb 229,129 Most Valuable Professional
nmaenpaa 101,154