web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

I can't change parentcustomerid from Contact's Entity

(0) ShareShare
ReportReport
Posted on by

Hi guys!

When I try change Account from Contact.

I have an Error :  <ErrorCode>-2147220970</ErrorCode> , it's annoying because we can't save records.

I deactivated Workflow,Js,Plugin, but nothing works.

Moreover we can't murged account.

I think it comes from the same problem.

Happy to wait for your answer

Thank you in advance

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    What's the actual error message you are getting? if you are not getting any useful error message from UI, I would recommend you enable tracing and use the trace reader to go through the errors and find the actual errors message.

    You could follow the steps below to enable trace and to use the trace reader

    You can enable tracing using the following tool

    archive.codeplex.com

    Download the archive, unzip, under the releases folder, rename the file inside the folder 5 to .zip and unzip this to get the actual exe. Copy this across to crm server an run and enable trace

    And you can use the traced reader to identify the error easily

    archive.codeplex.com

    Download the archive, unzip the file, under the releases folder, rename the file in folder 3 to .exe and this is the reader application. Copy this across to CRM server to read the trace file

    Make sure you disable the tracing once you done the debugging as it will be logging a lot of data and might quickly fill up the server hard disk

  • Community Member Profile Picture
    on at

    .

  • Community Member Profile Picture
    on at

    Hi Kokulan!

    Thanks for your reply.

    The link share "Crmdiagtool" is for CRM 2011/2013/2015. 

    But I forgot to say that we have the release CRM 2016.

    The full message is :

    "Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail: 

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
    <ActivityId>cd2b12a2-e1f1-4aeb-84c0-4c93ed917b25</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>An unexpected error occurred.</Message>
    <Timestamp>2019-06-25T06:50:20.6776811Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />

    <InnerFault i:nil="true" />

    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>"


    thanks again

  • Kokulan Profile Picture
    18,054 on at

    Hi

    The tool will work for CRm 2016 and I have used that in few CRM 2016 installations.

    Like I said before, the error message above is very generic and only the CRM trace can actually reveal the root cause of this error.

  • Community Member Profile Picture
    on at

    I try the software and we have 2 errors:

    "at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments)  ilOffset = 0x11

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x64

    at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x93

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0xDE

    at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)  ilOffset = 0x35

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x218

    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4

    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x22D

    at ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId)  ilOffset = 0x0

    at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType)  ilOffset = 0x0

    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)  ilOffset = 0x4B

    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)  ilOffset = 0x0

    at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34

    at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xBC

    at UpdateCommand.Execute()  ilOffset = 0x7

    at EntityProxy.Update(Boolean performDuplicateCheck, Guid auditingTransactionId)  ilOffset = 0x18

    at EntityProxy.Update(Boolean performDuplicateCheck)  ilOffset = 0xC

    at EntityProxy.UpdateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck)  ilOffset = 0x0

    at CommandBase.UpdateEntity(Entity entity, Boolean retrieve)  ilOffset = 0xBC

    at SaveCommand.ExecuteCommand(String commandXml)  ilOffset = 0x10E

    at CommandBase.Execute(String commandXml, Boolean encodeValues)  ilOffset = 0xB

    at InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues)  ilOffset = 0xAC

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x16

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x6C

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x3F

    at WebServiceHandler.Invoke()  ilOffset = 0xAE

    at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x134

    at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x3F

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStepImpl(IExecutionStep step)  ilOffset = 0x64

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at PipelineStepManager.ResumeSteps(Exception error)  ilOffset = 0x27A

    at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)  ilOffset = 0x31

    at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)  ilOffset = 0xB0

    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x131

    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0

    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF

    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF

    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x1E7

    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0

    Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.

      à Microsoft.Crm.BusinessEntities.ServiceClassFactory.CreateInstance(EntityMetadata metadata)

      à Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeReparentRecursive(Guid parentId, Int32 parentOTC, Guid reparentAncestorId, Int32 reparentAncestorOTC, SecurityPrincipal reparentAncestorOwner, ExecutionContext context, Boolean unshare, Boolean breakIfChildEntitiesFound)

      à Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeReparent(Guid parentEntityId, Int32 parentEntityObjectTypeCode, SecurityPrincipal parentOwner, ExecutionContext context, Boolean unshare)

      à Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandlerAppendAppendToPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)

      à Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandler(ExtensionEventArgs e, Object sender)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreUpdateEventHandler.Invoke(Object sender, ExtensionEventArgs e)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.UpdateWithPipelineAndExtensions(IBusinessEntity entity, ExecutionContext context)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.Update(IBusinessEntity entity, ExecutionContext context, Boolean updateWithPipeline)

      à Microsoft.Crm.Common.ObjectModel.ContactService.Update(IBusinessEntity entity, ExecutionContext context)"

        Other :

    "Web Service Plug-in failed in SdkMessageProcessingStepId: {C5CDBB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: contact; Stage: 30; MessageName: Update; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel.

      à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

      à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

      à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

      à System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

      à Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

      à Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

      à Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    Inner Exception: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.

      à Microsoft.Crm.BusinessEntities.ServiceClassFactory.CreateInstance(EntityMetadata metadata)

      à Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeReparentRecursive(Guid parentId, Int32 parentOTC, Guid reparentAncestorId, Int32 reparentAncestorOTC, SecurityPrincipal reparentAncestorOwner, ExecutionContext context, Boolean unshare, Boolean breakIfChildEntitiesFound)

      à Microsoft.Crm.BusinessEntities.CascadeEngine.CascadeReparent(Guid parentEntityId, Int32 parentEntityObjectTypeCode, SecurityPrincipal parentOwner, ExecutionContext context, Boolean unshare)

      à Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandlerAppendAppendToPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)

      à Microsoft.Crm.BusinessEntities.SecurityExtension.PreUpdateHandler(ExtensionEventArgs e, Object sender)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreUpdateEventHandler.Invoke(Object sender, ExtensionEventArgs e)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.UpdateWithPipelineAndExtensions(IBusinessEntity entity, ExecutionContext context)

      à Microsoft.Crm.BusinessEntities.BusinessProcessObject.Update(IBusinessEntity entity, ExecutionContext context, Boolean updateWithPipeline)

      à Microsoft.Crm.Common.ObjectModel.ContactService.Update(IBusinessEntity entity, ExecutionContext context)."

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans