Hello,
We have a CRM organization that is updated client info every night with information from our store.
The update is done with CRM SDK
We could go up to 6000 clients to update for a night.
If one update has an error (Like rom CRM plugins ), we log the error and update the next client.
Lately we keep having the following error the comes up every half hour, :
An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
Between the call to update and the error being raised, the update seem to hang for about 20 minutes.
After logging the error, the next client is updated with an error.
We've look at the solution
https://community.dynamics.com/crm/b/dynamicscrmconnector/archive/2012/10/01/security-token-errors-in-wcf-services
But it did solve or problem.
Does anybody has an idea what could be creating the error ?
Here is the trace stack for our error:
2015/07/02 09:38:59 - [CCM.GetCIOCustomer.exe] - CIO_NewCustomersID : 14845 [EntityNum=000280,CustomerNumber=409901] - An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
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.Update(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Update(Entity entity)
at UAP.Crm.GetCIOCustomer.CRMEntitiesMGR.StoreCustomerAccount(CIO_NewCustomer customer, Boolean isCreation, Boolean becameGeneric)
at UAP.Crm.GetCIOCustomer.GetCIOCustomerMGR.UpdateCustomerAccount(CIO_NewCustomer customer)
at UAP.Crm.GetCIOCustomer.GetCIOCustomerMGR.Step_07_ProcessCIOCustomerAccount()
The security context token is expired or is not valid. The message was not processed.
Thank you