Workflows not working after Migration

Published by Mohit Agrawal on

Recently I worked on the migration of workflows from SP2010 to SP2013. where I found an issue:

Issue:

Migration approach we used is Database backup and restore. After environment was setup in 2013 we found out that couple of workflows were not working.
Some Approval workflows and custom ones stopped working after migrating to the Production environments with SP 2013 while in SP 2010 environment, same workflow was working.
To find out the difference we compared different properties of workflow in SP 2013 with the workflow in SP 2010 but nothing significant came out.

Reason:

Workflow has one property as Initiator. This property of workflow determines by which account workflow was initiated. So in order to properly execute the workflow, this user account must have valid user profile i.e. user need to be present in User Profile Service. If user is invalid then the workflow will not run.

Workflows initiated by invalid users or the ones who left organization did not run after migation. We updated all the initiators of all the workflows and the workflows started working.

 5,507 total views,  4 views today

Care to Share?

Mohit Agrawal

Experience in SharePoint developement, migration.

5 Comments

Surya · July 10, 2018 at 8:10 PM

How to update initiators for all the workflow? Please share

Surya · July 11, 2018 at 6:23 PM

how to update initiator without restarting workflows?

    Mohit · July 13, 2018 at 5:55 PM

    try to update workflow initiator using powershell for me it works

      Surya · July 14, 2018 at 12:18 AM

      Could you please share the script or point to the any reference?

        Mohit Agrawal · July 14, 2018 at 12:42 AM

        Hi Surya, I don’t have script currently as we prepared for one of my clients but i can give u some point. If you find some issue after that let me know
        1. Go to list item
        2. Access all associated workflow
        3. Access initiator field of workflow
        4. Update to user which is valid

Leave a Reply