Updated SharePoint 2010 workflows do not work until iisreset.
I am using:
- SharePoint 2013 with CU's updated through May 2015
- SharePoint Designer 2013 32bit
Procedure:
- Create a new list with two columns Title (default), NewText (single line text )
- Create a SharePoint 2010 list workflow using SPD2013. The workflow is set to run manually only. Its only action is to put text into the NewText field when it runs.
- Create a list item
- Run the workflow manually - It works fine
- Edit the workflow in SPD2013 to simply put different text in the NewText field. e.g. initially the text was "FirstTry" changed to "SecondTry"
- Check for Errors (none of course)
- Publish - no errors
- I look at the workflows for the list and see that the original workflow was replaced as expected. (The new workflow is listed with the original workflow listed with (Previous Version . . . .) after the name.
- Run the workflow on the item - the text DOES NOT change.
- Create a new item
- Run the workflow - the text is set to "FirstTry" NOT "SecondTry"
- Recheck the workflow in SPD, republish etc. no change
- Do an iisreset - now the workflow sets the text to "SecondTry" as desired. further changes continue to have the problem as described above.
I have tried this on multiple site collections, list, different fields etc
I have tried the suggestions from others on this. The most common is clear %LOCALAPPDATA%\Microsoft\WebsiteCache. This does not work for me with no change is symptoms.
Other suggestion was to create the WF as a SharePoint 2013 workflow. Although this seems to work OK (I actually have a different problem with this) it is not a final answer because there are times we need to use SP2010 workflows. An example is that SP2013 will only use SP2010 workflows as a workflow approval action. Also SP2013 workflows do not provide a start approval process AND all of the OOTB workflows are based on the SP2010 workflows.
We really need to be able to update the SP2010 workflows - obviously iisreset is not a solution.
I am pulling my hair out on this one. Help!! Please!!