Hi all,
I am facing problem on synchronizing customer from AX 2009 to CRM 2016 through connector.
I got error about creating address of account. I use standard template to do synchronization.
Please help. Thank you very much.
Related mapping
Address 1 Dynamics Integration Key=GetPrimayAddressId(Customer Record\All Addresses)
Error from Event log
Unexpected exception from plug-in (Execute): Microsoft.Dynamics.Integration.Adapters.Crm2011.Plugin.CustomerAddressAxCreateEventHandler: System.NullReferenceException: Object reference not set to an instance of an object.
--- Exception Dump ---
Caught Exception: [Microsoft.Dynamics.Integration.AdapterAbstractionLayer.AdapterException] Unexpected exception from plug-in (Execute): Microsoft.Dynamics.Integration.Adapters.Crm2011.Plugin.CustomerAddressAxCreateEventHandler: System.NullReferenceException: Object reference not set to an instance of an object.
Stack trace:
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CreateNewEntity(Entity entity)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.WriteParentEntity(Object value, String queryProperty)
at Microsoft.Dynamics.Integration.Service.Tasks.RecordWork.DoRecordWork(DbMap map, Object key, OperationType operationType, DateTime startTime, String loggingSourceName)
Inner Exception: [System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]] Unexpected exception from plug-in (Execute): Microsoft.Dynamics.Integration.Adapters.Crm2011.Plugin.CustomerAddressAxCreateEventHandler: System.NullReferenceException: Object reference not set to an instance of an object.
Stack trace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)