Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Vague error when merging Contacts

(0) ShareShare
ReportReport
Posted on by

Hi everyone,


We've merged Contact Records many, many times. We've come across a situation where randomly, we can't merge some contacts. The error message is pretty vauge, and doesnt give an option to download the Log. On the CRM Server, I can see in the event viewer that there is an exception being thrown.

The following has been taken from the Event Viewer Log.

Any ideas?

The Web Service plug-in failed in OrganizationId: [Removed]; SdkMessageProcessingStepId: [Removed]; EntityName: contact; Stage: 30; MessageName: Merge; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=[Removed]; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
   at Microsoft.Crm.BusinessEntities.BusinessEntityCollection.get_Item(Int32 index)
   at Microsoft.Crm.Common.ObjectModel.GenericActivityServiceBase.UpdateOwnerAndRegardingParties(BusinessEntityMoniker actMoniker, GenericActivity entity, ExecutionContext context)
   at Microsoft.Crm.Common.ObjectModel.GenericActivityServiceBase.UpdateInternal(IBusinessEntity entityInterface, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeMergeThroughOneToManyEntityRelationships(Guid masterId, Guid subId, EntityMetadata parentEntityMetadata, Boolean useSystemContext, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeMerge(Guid masterId, Guid subId, Int32 parentTypeCode, Boolean useSystemContext, ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Merge(BusinessEntityMoniker masterMoniker, Guid subordinateId, IBusinessEntity entity, Boolean bPerformParentingChecks, ExecutionContext context)


*This post is locked for comments

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Vague error when merging Contacts

    Hi,

    For me it looks like a platform error, I even checked the CRM code that in this case there might be a bug with merging activities related to contacts. You should raise a support ticket with Microsoft, maybe they have already a fix for that.

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Vague error when merging Contacts

    Hi,

    For me it looks like a platform error, I even check the CRM code that in this case there might be a bug with merging activities related to contacts. You should raise a support ticket with Microsoft, maybe they have already a fix for that.

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans