Link to home
Start Free TrialLog in
Avatar of Michael Carrillo
Michael CarrilloFlag for United States of America

asked on

How to cancel multiple 'Error Occurred' workflows within a single list in SharePoint 2010

In our QA environment we have several workflows that have not completed due to errors. There are several thousand workflows in 'Workflow In Progress' status. We would like to cancel all the workflows that have errored out and are still in progress from only within this specific list. I've attempted running a powershell script but I could not get it to work.

Does anyone have a way or script to remove these failed instances?
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Carrillo

ASKER

Thank you sedgwick,

We wanted to run the status script before we ran the Workflows script to determine the status errors. As I ran the status script, I came across an error message when I enter the name of the workflow- we receive 'You cannot call a method on a null-valued expression.

Am I doing something wrong?

If more information helps, we have a workflow with multiple versions-when prompted for the Workflow name via the script, are we to only use the name of the WF or are we to list each version of the workflow?
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
This is very helpful, but need more information to work out a complete solution.