Quantcast
Viewing all articles
Browse latest Browse all 25064

SharePoint 2013 Workflow won't update on deployment

I developed a workflow in Visual Studio 2012 using the SharePoint 2013 list workflow template. The workflow only consists of a "WriteToHistory" activity that writes "Hello World" to the history list.

I deployed the workflow, created a list item and it worked. I then changed the WriteToHistory activity from "Hello World" to "Hello World Changed" and redeployed. When I ran the workflow again it still showed the original message "Hello World".

Steps I've taken to troubleshoot... all with the same result as above...

  1. Without retracting... remove the workflow from the list, deactivate the feature, activate the feature (which adds the workflow to the list), run the workflow
  2. Without retracting... remove the workflow from the list, deactivate the feature, restart w3svc and workflow backend service, activate feature, run the workflow
  3. 2 with iisreset instead of restarting the services
  4. Both 1, 2, and 3 with retraction
  5. I also tried rebooting the server to see if it might have been a caching issue

I still think it's a caching issue, but I don't know where to reset the cache.

When I looked at the xaml file in SharePoint using SharePoint Manager 2013 it had the updated string.

One other thing I noticed is when I opened SharePoint Designer to the site where all of this is being deployed it showed the workflow even after it had been retracted. I tried to delete it in designer and got no error messages, but it was still there. If I click into the workflow in designer it tells me it can't find the workflow definition.

This is a development machine with the latest bits and everything installed on one server. I'm working on a sub site collection's subsite http://maincollection/sites/subcollection/subsite. I ran the Register-SPWorkflowService command and used http://maincollection as the target.

Thoughts?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>