Hello everyone. Dynamics 365 error when merging 2 contacts - only started this week (we have been merging successfully, the same way, for years).
By the way, I am doing this via advanced find (on email) - I have just noticed that if I do it via an active contacts view it works ok, but the "advanced find" way is the way that always used to work for me.
If anyone has any ideas, please let me know. Much appreciated. Thanks.
Error
An error has occurred.
Try this action again. If the problem continues, check theMicrosoft Dynamics 365 Communityfor solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contactMicrosoft Support. If you contact support, please provide the technical details.
Logfile below:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] Message: System.InvalidCastException: Unable to cast object of type 'Microsoft.Crm.Metadata.StringAttributeMetadata' to type 'Microsoft.Crm.Metadata.DateTimeAttributeMetadata'. at Microsoft.Crm.Application.Components.Sdk.FormControls.Web.DateTimeControl.set_Metadata(AttributeMetadata value) +0xf at Microsoft.Crm.Application.ControlActivator.CreateControl(ControlDescriptor controlDescriptor, FormFactor formFactor, String controlIdPrefix, CustomizableFormExtended hostForm, FormDescriptor hostFormDescriptor, IOrganizationContext context, DynamicMetadataCache metadataCache) +0x1a7 at Microsoft.Crm.Application.Forms.MergeForm.BuildFormModel(FormDescriptor formDescriptor) +0x19d at Microsoft.Crm.Core.Application.WebServices.MergeRecordsHandler.GenerateMergeForm(String recordOne, String recordTwo, Int32 objectTypeCode, Int32 masterRecord) +0x52 at Microsoft.Crm.Core.Application.WebServices.MergeRecordsHandler.ProcessRequestInternal(HttpRequest request) +0x167 at Microsoft.Crm.Application.AppHttpHandlerWithKeepAlive.ProcessRequestInternal(HttpContext context) +0x37: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #93FC8E1EDetail: <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts"> <ActivityId>4166128d-cada-4c27-b721-c9eb4059ccfb</ActivityId> <ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" /> <HelpLink i:nil="true" /> <Message>System.InvalidCastException: Unable to cast object of type 'Microsoft.Crm.Metadata.StringAttributeMetadata' to type 'Microsoft.Crm.Metadata.DateTimeAttributeMetadata'. at Microsoft.Crm.Application.Components.Sdk.FormControls.Web.DateTimeControl.set_Metadata(AttributeMetadata value) +0xf at Microsoft.Crm.Application.ControlActivator.CreateControl(ControlDescriptor controlDescriptor, FormFactor formFactor, String controlIdPrefix, CustomizableFormExtended hostForm, FormDescriptor hostFormDescriptor, IOrganizationContext context, DynamicMetadataCache metadataCache) +0x1a7 at Microsoft.Crm.Application.Forms.MergeForm.BuildFormModel(FormDescriptor formDescriptor) +0x19d at Microsoft.Crm.Core.Application.WebServices.MergeRecordsHandler.GenerateMergeForm(String recordOne, String recordTwo, Int32 objectTypeCode, Int32 masterRecord) +0x52 at Microsoft.Crm.Core.Application.WebServices.MergeRecordsHandler.ProcessRequestInternal(HttpRequest request) +0x167 at Microsoft.Crm.Application.AppHttpHandlerWithKeepAlive.ProcessRequestInternal(HttpContext context) +0x37: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #93FC8E1E</Message> <Timestamp>2022-05-06T07:59:45.0572663Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault>
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.