Monday, October 24, 2011

SharePoint Designer workflow keeps running old version

If you do some changes in the workflow and publish it again, sometimes the changes won't get reflected on the site. Workflow keeps running the old version since it does not update the dll. This is basically due to a mismatch between the server's activity and the SPD client's cached activity. To fix this problem its a good idea to clear your SPD activity cache whenever you update your activities DLL on the server.

To clear the SPD activity cache:

1. Close SPD.
2. Open “My Computer”.
3. Go to %System Drive%\Documents and Settings\%user%\Local Settings\Application Data\Microsoft\WebSiteCache (If you are running Vista, that path is different - look for %System Drive%\Users\%user%\AppData\Local\Microsoft\WebSiteCache).
4. Go to a directory that looks similar to the name of the website you were connecting to. (Alternatively, you can just delete all these directories and everything should work when you boot SPD).
5. Delete the assembly with the name similar to the one you are changing.
6. Boot SPD.
7. You can now work with your updated activity.

Your workflow will start working as expected !!

1 comment:

  1. Thank you for sharing this!

    You have no idea how much grief you saved me, I was darn close to ditch my workflow and build it up again :)

    ReplyDelete