When working with WF 40 and content based correlation you may get following error:
The execution of an InstancePersistenceCommand was interrupted by a key collision. The instance key with value '300a1ad8-d985-56dc-4075-b45e1aa1faa1' could not be associated to the instance because it is already associated to a different instance.
Remark: The key value (guid in example above) is application specific and in your case the same value will for sure not appear.
This message appears when you initialize the workflow and the correlation token based on some property value in the message, but the workflow with the same property value has already been started.
For example, you have receive shape which starts with message and property OrderID=100. The same shape initializes the content based correlation based on the same property. On first call the workflow will be started and at some later point of time persisted. If the client sends the same message now (OrderID=100) the workflow will fail, because it has already been started.
Note also: If the workflow ends up before new message with the same ID comes, all will work fine.
Posted
Oct 06 2009, 09:46 AM
by
Damir Dobric