Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Error "The Workflow has ended unexpectedly" when workflow changes state

    Summary
    State Machines keep failing. The Workflow will enter the first state, however as soon as it tries to change state it will fail. The error in the workflow history is nondescript and simply state "The Workflow has ended unexpectedly." When viewed in ULS, you can see the OWSTIMER.exe service on an Application server picking up the workflow and then failing.

    Solution
    1. Locate a Web Front End server which has the Web Application service running.
    2. Open a SharePoint Management Console and run the following PowerShell command to copy workflow-related configuration from the web.config to the configuration database so it will be available from every server in the Farm.
      $webapp = Get-SPWebApplication -identity http://
      $webapp.UpdateWorkflowConfigurationSetttings()