Error loading a persisted workflow

Posted by fra on Stack Overflow See other posts from Stack Overflow or by fra
Published on 2011-01-13T10:50:06Z Indexed on 2011/01/13 10:54 UTC
Read the original article Hit count: 844

Hi,

I have a workflow started and persisted using messaging activities. The correlation between the Start initial command and the Stop final command works well if they're sent within few seconds. Problems begin when the workflow is unloaded, because the following Stop message throws the following FaultException:

If LoadWorkflowByInstanceKeyCommand.AssociateLookupKeyToInstanceId is not specified, the LookupInstanceKey must already be associated to an instance, or the LoadWorkflowByInstanceKeyCommand will fail. For this reason, it is invalid to also specify the LookupInstanceKey in the InstanceKeysToAssociate collection if AssociateLookupKeyToInstanceId isn't set

Can anybody help me? The variables inside the workflow are of types int and XDocument.

Any help appreciated, thank you

© Stack Overflow or respective owner

Related posts about persistence

Related posts about workflow-foundation-4