SharePoint designer workflow not changing after publish

PeterMacko picture PeterMacko · Oct 9, 2014 · Viewed 17.8k times · Source

I'm working on SharePoint workflow (SharePoint 2010) in SharePoint designer 2010. I was published it many times without problems. But after many publishes (I thing 30) SharePoint stop to changing workflow (I published it without any error and I can find new workflow release in SharePoint web interface).

I published new version (with new commands) but workflow still use old one. But when I modified one of commands which was in workflow previously the modification will appear in next run. I need to add to workflow new commands. My only option is to rewrite whole workflow to new one. But this is much complicated workflow and rewriting takes me long time. Is this behavior normal? Is it some bug? is there any patch or workaround?

Answer

lem.mallari picture lem.mallari · Oct 9, 2014

This happens most of the time due to the caching mechanism in SharePoint/SharePoint Designer. What you need to do is the following:

  1. Close your SharePoint Designer
  2. Navigate to the following directory: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
  3. Delete everything in this directory
  4. Navigate to the following directory: %APPDATA%\Microsoft\Web Server Extensions\Cache
  5. Delete everything in this directory
  6. Open SharePoint Designer and try to publish your workflow again.

Everything should now work.

For SharePoint Designer 2013 you need to do the following steps:

  1. Go to File > Options > General > Application Options
  2. In the General tab, under the General header, check if the "Cache site data across SharePoint Designer sessions” is ticked. If it is, unchecked it.
  3. Open your SharePoint Designer again and try to publish your workflows.