Revert already completed Workflow RRS feed

  • Question

  • Hi everyone,

    We have bulk workflow processing inside a transaction. In a rare case we can receive an error in a middle of the bulk so we should be able to revert all the workflows to the initial state. However transaction rollback works only with system data but workflows stay completed. So when we try to run bulk operation second time we receive an error "The execution of an InstancePersistenceCommand was interrupted because the instance 'id' is already complete."

    I checked the table [System.Activities.DurableInstancing].[InstancesTable] it updates ExecutionStatus to Closed and doesn't change on rollback.

    Can you please advise me on how to revert already completed Workflow? 

    Monday, July 1, 2019 10:31 AM