Products: Nintex Workflow 2013, Nintex Workflow 2010
Â
A common request we see is "How do I cancel/terminate a group of site workflows that are in a state of 'Error Occurred'?" This article provides instructions on how to accomplish this.
Â
Run the below (attached as well as a *.txt file for your convenience) PowerShell script (PowerShell ISE works well) from a SharePoint Server:
Â
PowerShell Script |
---|
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue function Cancel-SPWorkflow(){ } $(Get-SPWeb http://contoso.com).Workflows | where { |
 |
Â
To use the script, replace http://contoso.com with the URL of the site you wish to execute the script against.
Â
For the List Item Workflow version of this article go here: How to bulk cancel list item workflows with a status of "Error Occurred"