Troubleshooting Actions for SharePoint 2013 Workflows


Workflow Execution Issues

    1. Look in the Workflow History list, eg "http://sp2013/Lists/Workflow History". Do you find any errors in there?
    2. Is the user account starting the workflow correctly synchronized in the user profile database?
    3. Is the user account starting the workflow different from the Worflow Manager setup account? (more info at http://technet.microsoft.com/en-us/library/jj658588.aspx#section7)
    4. Are the User Profile Service and App Management Service started? See the green frames in the screenshot below, taken from Central Administration \Manage Services on Server:Services Started
    5. Are the App Management Service Application and User Profile Service Application started? Their proxies should be started as well. See the green frames in the screenshot below, taken from Central Administration \ Manage Services on Server:
    Service Applications Started


    How to Retrieve an Exception in the Workflow Manager Database

        Note that this is unsupported in a production environment, but very useful in a test environment!  
    In the SharePoint page workstat.aspx, copy the field requestor id
    1. In the URL query parameter from the worsktat.aspx page, copy theinstanceid field
    2. Open the WFInstanceManagementDB database with SQLManagement Studio, then request from the DebugTrace table
    3. The exception is in the WorkflowStatusDetail column


    Is SharePoint 2013 server connected?

        In Central AdminService Applications \ Workflow Service Application Proxy: check the status. Does it read Workflow is Connected as in the below screenshot?  
    Workflow Status

    Is the Worflow Manager farm running?

        On a server member of the Workflow Manager farm:
    1. Start Workflow Manager PowerShell
    2. Run the get-WFStatus command
    3. Are the statuses Running, as on the screenshot below?
    Workflow Status PowerShell


    Is the Oauth Metadata information published and accessible from the SharePoint server?

        On the SharePoint 2013 server, start Internet Explorer, and check whether the Oauth metadata is accessible. The url is like http://wfm1:12291/$SYSTEM/$Metadata/json/1 . Below an example:  
    OAuth JSon Info


    Are the Scopes registered in the Workflow Manager farm?

    It is possible to check from Internet Explorer that the scopes are registered. It is also possible to navigate the workflow data. The example URLs below allow to check these elements:

    Notes

    The GUIDs in the above URLs are not static.
    The tool below provides an easy navigation in the workflow manager data:
    On a Workflow Manager server, you have to run the Workflow-Resource-Browser as administrator.


    Activate Workflow Manager Logs

      1. Start Event Viewer
      2. Expand Applications and Services Logs \ Microsoft-Workflow
      3. In the menu View \ Show Analytical and Debug logs
      4. Select the Debug log, then right-click enable LogWorkflow EVTX5. Reproduce the issue
      6. Select the Debug log, righ-click Disable Log. (The point is to avoid filling the platform with logs)
      7. It is then possible to save the le log in the EVTX format

    I hope this checklist will help you while setting up and troubleshooting workflow!

    Comments

    Popular posts from this blog

    SharePoint 2013 Keyword Query (KQL) Content Class Property Restrictions

    Filtering the Sharepoint List Taxonomy Column using Rest API

    SharePoint CSOM to Create Folders and Sub Folders based on Excel Data