Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint designer workflow not changing after publish

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?

like image 886
PeterMacko Avatar asked Oct 09 '14 07:10

PeterMacko


People also ask

How do I publish a SharePoint Designer workflow?

Click Workflow Settings. Check the start options. I have selected both items created and item changed event, so that the Workflow triggers on either of these events. Finally 'Publish' the Workflow, which will push the newly created Workflow to SharePoint Online list.

How do I edit a workflow in SharePoint Designer?

To edit an existing workflow in SharePoint Designer 2010, in the Navigation pane, click Workflows. In the main pane, right-click the desired workflow, and click Edit Workflow.

How do I check a SharePoint Designer workflow?

View the workflow status If the name of your list or library does not appear, in the Site Actions menu, click View All Site Content, and then click the name of your list or library. Point to the document or item that is involved in the workflow, click the arrow that appears, and then click Workflows.

Are SharePoint Workflows going away?

SharePoint 2010 workflows are deprecated but will remain supported for the SharePoint Server Subscription Edition release until July 14, 2026. After that date, SharePoint 2010 workflows will no longer be supported.

How do I publish workflows in SharePoint Designer 2013?

For SharePoint Designer 2013 you need to do the following steps: Go to File > Options > General > Application Options In the General tab, under the General header, check if the "Cache site data across SharePoint Designer sessions” is ticked. Open your SharePoint Designer again and try to publish your workflows.

How to refresh data in SharePoint Designer?

This can be achieved by either restarting Designer, or by clicking the data refresh icon at the top left corner of the window. Surprisingly, this fixes certain errors to do with designer workflow activities. Thanks for contributing an answer to SharePoint Stack Exchange!

How many SharePoint 2010 workflows have been unblocked after the fix?

Final status: Our internal tests have confirmed that SharePoint 2010 workflows have been unblocked on the approximately 99 percent of affected infrastructure that has received the fix.

How do I enable/disable cache in SharePoint Designer?

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. Open your SharePoint Designer again and try to publish your workflows.


2 Answers

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.
like image 185
lem.mallari Avatar answered Oct 21 '22 03:10

lem.mallari


There is an easy workaround: You need to enable major versioning for the Workflows list. By default, that list is not visible but you still can get to the admin page:

  1. Open SP Designer
  2. Goto All Files
  3. Right-Click Workflows list -> Properties
  4. On the ribbon click Administration Web Page
  5. On the admin page go to Versioning Settings
  6. Enable major versioning
  7. Save your workflow
like image 1
MarsRobot Avatar answered Oct 21 '22 02:10

MarsRobot