The execution of an InstancePersistenceCommand was interrupted because the instance [guid] has not yet been persisted to the instance store. RRS feed

  • 问题

  •    I have AppFabric installed on my PC (Win7 ultimate, VS version: VS2010 pro).  And I have created the monitoring and persistence SQL stores.Now I have a WF service hosted on IIS  which just invokes a method to access db data without any exception handlers.

       I want to make the service can resume when exception occurs, so I configured the "Manage WCF and WF Services" as follow:

       1) Workflow Persistence => Select "defaultSqlPersistenceStore"

       2) Workflow Host Management => Check "Enable Instance Control", Unload Instances When Idle (60 secs), Persist workflow when Idle (60 secs), Select "Abandon and suspend" to unhandled exception.

      If no exception, everything is OK. And when I make an exception in purpose (modify the db table with a wrong name),  The instance can be found on the appfabric dashboard (until now it's OK), but after modified the db table name to be the right one,  I select the "continue" command to try to resume the instance, error occurred: "The execution of an InstancePersistenceCommand was interrupted because the instance 'b181220f-42e4-4108-ab26-a1066631da33' has not yet been persisted to the instance".

      Anyone has ideas what's wrong with it?

    2012年8月27日 2:46


  • Hi,

    Workflow Management Service recovers the abandoned workflow instance from the last persistence point saved in the instance store. In this case, it is probably your workflow hasn't been persisted to the instance stor before it throw the exception. You can manually put a persist point into the workflow.

    Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2012年8月29日 5:55