Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Duplicate Detection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to debug a Duplicate Detection plugin written for Employee Number on Contact Entity. However i cannot find the name of the plugin. Can someone help me. I am uploading Error log File details for reference.

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: A record that has the attribute values Employee Number already exists. The entity key Employee_Number requires that this set of attributes contains unique values. Select unique values and try again.Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>71ac276f-eb60-4c5e-bbe8-03a8ca5c02db</ActivityId>
<ErrorCode>-2147088238</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionSourceKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.ContactService</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: A record that has the attribute values Employee Number already exists. The entity key Employee_Number requires that this set of attributes contains unique values. Select unique values and try again. ---&gt; Microsoft.Crm.CrmException: A record that has the attribute values Employee Number already exists. The entity key Employee_Number requires that this set of attributes contains unique values. Select unique values and try again.
at Microsoft.Crm.Platform.Server.DataEngine.EntityCrudManager.ThrowDuplicateRecordException(IBusinessEntity entity, ExecutionContext context, SqlException e)
at Microsoft.Crm.Platform.Server.DataEngine.EntityCrudManager.Create(IBusinessEntity entity, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoCreate(IBusinessEntity entity, ExecutionContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">803b8615-ecd8-db11-b397-0019b9204da9</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">71ac276f-eb60-4c5e-bbe8-03a8ca5c02db</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionCategory</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionMesageName</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">DuplicateRecordEntityKey</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">412</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>DuplicateEntity</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Entity xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts"&gt;&lt;Attributes xmlns:d2p1="">schemas.datacontract.org/.../d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;territorycode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;statecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;0&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_donotsurvey&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;address2_shippingmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;isprivate&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;followemail&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;true&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;msdyn_isminorwithparentalconsent&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_issensitive&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_deceased&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotsendmm&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_lockoutenabled&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;createdon&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:dateTime"&gt;2020-04-07T06:50:42Z&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;educationcode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_employeenumber&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int"&gt;123456&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_mobilephoneconfirmed&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;fullname&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string"&gt;YAaaaaa yYYAGDCugav&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;ownerid&lt;/d2p1:key&gt;&lt;d2p1:value i:type="EntityReference"&gt;&lt;Id&gt;0d31bc44-931e-e711-8104-3863bb349770&lt;/Id&gt;&lt;KeyAttributes xmlns:d5p1="">schemas.microsoft.com/.../Contracts" /&gt;&lt;LogicalName&gt;systemuser&lt;/LogicalName&gt;&lt;Name i:nil="true" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_profileisanonymous&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotpostalmail&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;owningbusinessunit&lt;/d2p1:key&gt;&lt;d2p1:value i:type="EntityReference"&gt;&lt;Id&gt;e10343dc-5613-e711-8104-3863bb349770&lt;/Id&gt;&lt;KeyAttributes xmlns:d5p1="">schemas.microsoft.com/.../Contracts" /&gt;&lt;LogicalName&gt;businessunit&lt;/LogicalName&gt;&lt;Name i:nil="true" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;msdyn_orgchangestatus&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;0&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;isbackofficecustomer&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotbulkpostalmail&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;modifiedon&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:dateTime"&gt;2020-04-07T06:50:42Z&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotemail&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;address2_addresstypecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotphone&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_twofactorenabled&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;transactioncurrencyid&lt;/d2p1:key&gt;&lt;d2p1:value i:type="EntityReference"&gt;&lt;Id&gt;4a173ac6-6513-e711-810a-3863bb34da28&lt;/Id&gt;&lt;KeyAttributes xmlns:d5p1="">schemas.microsoft.com/.../Contracts" /&gt;&lt;LogicalName&gt;transactioncurrency&lt;/LogicalName&gt;&lt;Name i:nil="true" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;contactid&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">schemas.microsoft.com/.../" i:type="d4p1:guid"&gt;05b4df12-9c78-ea11-a811-002248007cf0&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotbulkemail&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_redlist&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;haschildrencode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;modifiedby&lt;/d2p1:key&gt;&lt;d2p1:value i:type="EntityReference"&gt;&lt;Id&gt;0d31bc44-931e-e711-8104-3863bb349770&lt;/Id&gt;&lt;KeyAttributes xmlns:d5p1="">schemas.microsoft.com/.../Contracts" /&gt;&lt;LogicalName&gt;systemuser&lt;/LogicalName&gt;&lt;Name i:nil="true" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;statuscode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_amberlist&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;leadsourcecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_profilealert&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;modifiedonbehalfby&lt;/d2p1:key&gt;&lt;d2p1:value i:nil="true" /&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;preferredcontactmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;msdyn_gdproptout&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;lastname&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string"&gt;yYYAGDCugav&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;hsl_source&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;864630001&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;exchangerate&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:decimal"&gt;1.0000000000&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;firstname&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string"&gt;YAaaaaa&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_confirmremovepassword&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;yomifullname&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string"&gt;YAaaaaa yYYAGDCugav&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;donotfax&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;merged&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;createdby&lt;/d2p1:key&gt;&lt;d2p1:value i:type="EntityReference"&gt;&lt;Id&gt;0d31bc44-931e-e711-8104-3863bb349770&lt;/Id&gt;&lt;KeyAttributes xmlns:d5p1="">schemas.microsoft.com/.../Contracts" /&gt;&lt;LogicalName&gt;systemuser&lt;/LogicalName&gt;&lt;Name i:nil="true" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;marketingonly&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;customersizecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;shippingmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;customertypecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;msdyn_disablewebtracking&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;creditonhold&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_logonenabled&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;isautocreate&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;participatesinworkflow&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;preferredappointmenttimecode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_locallogindisabled&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;msdyn_isminor&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;false&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;adx_identity_emailaddress1confirmed&lt;/d2p1:key&gt;&lt;d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:boolean"&gt;true&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;KeyValuePairOfstringanyType&gt;&lt;d2p1:key&gt;address2_freighttermscode&lt;/d2p1:key&gt;&lt;d2p1:value i:type="OptionSetValue"&gt;&lt;Value&gt;1&lt;/Value&gt;&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringanyType&gt;&lt;/Attributes&gt;&lt;EntityState i:nil="true" /&gt;&lt;FormattedValues xmlns:d2p1="">schemas.datacontract.org/.../d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;statecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Active&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_donotsurvey&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;address2_shippingmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;isprivate&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;followemail&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;msdyn_isminorwithparentalconsent&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_issensitive&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_deceased&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotsendmm&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Send&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_lockoutenabled&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;createdon&lt;/d2p1:key&gt;&lt;d2p1:value&gt;2020-04-07T07:50:42+01:00&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;educationcode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_employeenumber&lt;/d2p1:key&gt;&lt;d2p1:value&gt;123,456&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_mobilephoneconfirmed&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_profileisanonymous&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotpostalmail&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;msdyn_orgchangestatus&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No Feedback&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;isbackofficecustomer&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotbulkpostalmail&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;modifiedon&lt;/d2p1:key&gt;&lt;d2p1:value&gt;2020-04-07T07:50:42+01:00&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotemail&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;address2_addresstypecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotphone&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_twofactorenabled&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotbulkemail&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_redlist&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;haschildrencode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;statuscode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Active&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_amberlist&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;leadsourcecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_profilealert&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;preferredcontactmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Any&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;msdyn_gdproptout&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;hsl_source&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Dynamics 365&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;exchangerate&lt;/d2p1:key&gt;&lt;d2p1:value&gt;1.0000000000&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_confirmremovepassword&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;donotfax&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Allow&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;merged&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;marketingonly&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;customersizecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;shippingmethodcode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;customertypecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;msdyn_disablewebtracking&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;creditonhold&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_logonenabled&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;isautocreate&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;participatesinworkflow&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;preferredappointmenttimecode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Morning&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_locallogindisabled&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;msdyn_isminor&lt;/d2p1:key&gt;&lt;d2p1:value&gt;No&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;adx_identity_emailaddress1confirmed&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Yes&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;KeyValuePairOfstringstring&gt;&lt;d2p1:key&gt;address2_freighttermscode&lt;/d2p1:key&gt;&lt;d2p1:value&gt;Default Value&lt;/d2p1:value&gt;&lt;/KeyValuePairOfstringstring&gt;&lt;/FormattedValues&gt;&lt;Id&gt;05b4df12-9c78-ea11-a811-002248007cf0&lt;/Id&gt;&lt;KeyAttributes xmlns:d2p1="">schemas.microsoft.com/.../Contracts" xmlns:d2p2="">schemas.datacontract.org/.../System.Collections.Generic" /&gt;&lt;LogicalName&gt;contact&lt;/LogicalName&gt;&lt;RelatedEntities xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" /&gt;&lt;RowVersion i:nil="true" /&gt;&lt;/Entity&gt;</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>DuplicateAttributes</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">&lt;DuplicateAttributes&gt;&lt;hsl_employeenumber&gt;123456&lt;/hsl_employeenumber&gt;&lt;/DuplicateAttributes&gt;</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<HelpLink>go.microsoft.com/.../
<Message>A record that has the attribute values Employee Number already exists. The entity key Employee_Number requires that this set of attributes contains unique values. Select unique values and try again.</Message>
<Timestamp>2020-04-07T06:50:42.219141Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

  • Suggested answer
    Vijay Tailor Profile Picture
    Vijay Tailor 431 on at
    RE: Duplicate Detection

    Hi,

    Hop Please find below , hope it will help you somehow.

    CRMForm.png

    Thanks

  • Inogic Profile Picture
    Inogic 438 on at
    RE: Duplicate Detection

    To find the plugin name you, can use the plugin registration tools. Here, you can see all your plugin registered on entities. (connect-using-the-plug-in-registration-tool)

    1856.plugin.jpg

    To debug your plugin you can refer link - Debug a plug-in.

     

    As per the error logs, its seems that the error is thrown from CRM OOB plug-in (Plugin/Microsoft.Crm.Common.ObjectModel.ContactService). Not sure about your scenario but seems that it is violating unique key or duplicate detection rule.

    Thanks!

  • Suggested answer
    Carlo Velasco Profile Picture
    Carlo Velasco 787 on at
    RE: Duplicate Detection

    Hi

    You could try to enable the plug in traces, and check which custom plugins are getting executed on that event.

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/logging-tracing#enable-trace-logging

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans