What to do if a Workflow won't run? MA is stuck in Rerun!


  • There is a Change Request, and there are 4 Manual Activities on it. 

    The first MA is stuck in Rerun, all following MA's are stuck in Completed state.

    What shall I do?

    Tuesday, February 14, 2012 1:21 PM

All replies

  • Hi Dan,

    What is the status of the Change Request at this point?

    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog:

    Sunday, February 19, 2012 10:47 AM
  • The parent Change Request is in a Completed state now.

    But at my other customer there is a similar situation, one activity is stuck in Rerun state, but there the parent change request is InProgress state.

    Monday, February 20, 2012 10:38 AM
  • Hi Dan,

    It sounds like you're caught in a "catch 22".

    Since the parent CR is now closed, I would guess that the internal workflows managing re-run ignores it. Interesting... how did you end up in this state? :)

    You can set the status of the CR or the activity using PowerShell. The only question is what you want to accomplish. Would you like to re-run from the actvivity currently set to "re-run"?

    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog:

    Monday, February 20, 2012 11:18 AM
  • Patrik, I don't know how we get here, but users are clicking on everything they see, but still I cannot imagine how this happened...
    Monday, February 20, 2012 1:19 PM
  • :)

    So do you just want to set the activity status to "completed"?

    If so, here's a PowerShell command (you need to have smlets installed) that will change the status of a named activity to "completed".

    $activity = get-scsmclass system.workitem.activity$|Get-SCSMObject -Filter "Name -eq MA10925"
    $completed = Get-SCSMEnumeration activitystatusenum.completed
    Set-SCSMObject -SMObject $activity -Property Status -Value $completed

    Patrik Sundqvist Solutions Architect @ Gridpro AB Blog:

    Monday, February 20, 2012 2:02 PM