locked
OrganizationServiceFault: Context is not initialized or already cleaned up. RRS feed

  • Question

  • Hi,

    I have sync workflow on field change.

    In activity just call RetrieveMultiple a couple times and sometime users get  OrganizationServiceFault exception.

    Note it happens only sometime. It single thread no "if"s in the activity code.

    Possible it takes  too long when CRM returns a result for RetrieveMultiple and sandbox cleanup context. Does anybody know when sandbox context will be cleaned up? 

    System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Context is not initialized or already cleaned up.
    Server stack trace:
       at Microsoft.Crm.Sandbox.SandboxOrganizationService.get_Context()
       at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    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.Crm.Sandbox.ISandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
       at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request)
       at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.RetrieveMultipleInternal(QueryBase query)

    Faust

    Tuesday, November 17, 2015 10:50 PM

All replies

  • Did you ever solve this?


    Jonas Rapp http://jonasrapp.cinteros.se/

    Wednesday, August 17, 2016 7:54 AM