Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint 2013 Visual Studio Workflow not updating

I created a workflow with 2 sequences. I deployed it to test and everything worked fine. I went back and added a sequence between the two. Now it doesn't seem to execute anything in the new sequence. Is there a catch to reload the workflow in SharePoint to get these to appear?

In the image below, the new sequence is GetHRContextInfo. The WriteToHistory event never fires.

Also, I can't debug the workflow now, either.

Workflow Designer

like image 511
SPSamL Avatar asked Mar 22 '23 02:03

SPSamL


1 Answers

Andrew Connell's answer will work, but personally I find it a nuisance having to create a new workflow each time I want to do a minor change in the XAML/designer. Right click on your workflow project > Properties and find the sharepoint tab on the left. Then, under the "pre-deployment command line" paste this command:

tasklist /FI "IMAGENAME eq vssphost5.exe" 2>NUL | find /I /N "vssphost5.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /im vssphost5.exe
exit 0

enter image description here Be sure to deploy from visual studio. I have been working for months using this technique - visual studio will retract / clean up, remove associations, remove workflow XAML files where necessary and re-deploy flawlessly if you end that process. Kindly note that this is a microsoft bug.

like image 97
David Avatar answered Mar 31 '23 10:03

David