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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow error An open execution context was found but did not match organization for current SDK call

(1) ShareShare
ReportReport
Posted on by 50

I have a workflow issue that for some reason fails to continue after a wait condition has been met. The workflow does not change to a fail state, so can never really tell something has gone wrong until a user comes back.

7065.workflow.png

This is the error message that I get when clicking on details

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An open execution context was found but did not match organization for current SDK callDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>An open execution context was found but did not match organization for current SDK call</Message>
  <Timestamp>2015-10-09T13:12:42.9205121Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.RetrieveMultiple(QueryBase query, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
   at Microsoft.Crm.Extensibility.InprocessServiceProxy.RetrieveMultipleCore(QueryBase query)
   at Microsoft.Crm.Workflow.AsyncCustomActivityLoaderDirect.RetrievePluginId(QueryExpression query, String version)
   at Microsoft.Crm.Workflow.Services.ActivityReferenceService.ResolveType(String assemblyQualifiedName)
   at Microsoft.Crm.Workflow.Services.ActivityReferenceService.InitializeActivity(ActivityReference activityReference)
   at Microsoft.Xrm.Sdk.Workflow.Activities.ActivityReference.CacheMetadata(NativeActivityMetadata metadata)
   at System.Activities.NativeActivity.OnInternalCacheMetadata(Boolean createEmptyBindings)
   at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
   at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
   at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
   at System.Activities.WorkflowApplication.Load(Guid instanceId, TimeSpan timeout)
   at Microsoft.Crm.Workflow.ActivityHost.StartWorkflowExecution(Activity workflow, ICommonWorkflowContext context)
   at Microsoft.Crm.Workflow.ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity)

 

Please help.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Looks like your calling a custom workflow activity.  Createlog?  

    The plugin appears to be failing.

  • Community Member Profile Picture
    on at

    Imtiaz,

    Did you ever resolve this?

    I am having nearly the exact same issue.

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi Imtiaz,

    Try removing the custom workflow activity and reduce the timeout period and see if the workflow continues correctly. If it does, then the issue is in the custom workflow activity.

    If this is the case, then test the custom workflow activity separately in a test workflow while plugin trace logs are enabled to figure out the issue with the custom workflow activity.

    Cheers,

    Nadeeja

  • P. R. M Profile Picture
    739 on at

    Hi Imtiaz Hussain,

    Have you found any solution for this? We are also facing same issue.

    We have only OOB Process as a child workflow that calling from another OOB process. On status change we are calling this child workflow and sending reminder emails after 7 days wait time. But, its failing for 3-4 times so far and remaining its working fine.

    Please suggest us if anyone find the solution.

    Regards,

    Prasad Reddy, M.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans