Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Failure updating SharePoint 2013 workflows; old version runs after update.

$
0
0

Hello.

I am struggling applying updates to my SharePoint 2013 (Workflow Manager) workflows after I have initially deployed them. After I re-deploy my updated solutions, the old workflow will still run.

This is my setup:

Machine 1

- Microsoft Server 2012 with Active Directory Domain Services and DNS - MS SQL server 2012

Machine 2:

- Microsoft Server 2012 domain-joined to machine1 domain- SharePoint server 2013 - Visual Studio + SharePoint Designer - Workflow Manager and service bus

This is my procedure for deploying:
1) Publish Visual Studio project as <nameoffeature.wsp>  to local file system.
2) stsadm -o addsolution -filename <nameoffeature.wsp>
3) stsadm -o deploysolution -name <myfeature.wsp> -allowGacDeployment -immediate
4) stsadm -o activatefeature -id <featureid> -url <site collection url>

This is my procedure for removing solutions/features (I found out I had to do it like so rather than just re-deploying from VS to remove the assembly from GAC, and the feature from the SharePoint 15 hive):

1) stsadm -o deactivatefeature -id <featureid> -url <site collection url>
2) stsadm -o uninstallfeature -id <featureid>
3) stsadm -o retractsolution -name <nameoffeature.wsp> -immediate
4) stsadm -o deletesolution -name <nameoffeature.wsp>

Both of these steps executes successfully without any errors, both on the first time deployment, and subsequent deployments. In the XAML file under \TEMPLATE\FEATURES\<featurename> I can see that it has indeed been updated. However, the old, non-updated workflow will still run once I trigger the workflow start.

The workflow is just a workflow containing some WriteToHistoryList activies in a farm solution (there's nothing with the project, it compiles without errors or warnings).

I've performed iisreset, restarted web application (even machine) and recycled applications pools to no avail.

Viewing all articles
Browse latest Browse all 7589

Trending Articles



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