locked
Event ID 33880. Object reference not set to an instance of an object RRS feed

  • Question

  • Hi,

    We are using SCSM 2012 R2 in our organisation for Incident, Service Request and Change Management. Some of the random manual activities in incidents are stuck in pending status. The previous activity is completed however the next activity do not go into progress. Checked the workflows and there are workflows failing with the error as below:

    A Windows Workflow Foundation workflow failed during execution.

    Workflow Type: Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Workflows.ActivityStatusChangedWorkflow

    Workflow Identifier: 1234-abcd

    Exception Type: System.NullReferenceException

    Exception Message: Object reference not set to an instance of an object.

    Exception Stack: at Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Workflows.ActivityStatusChangedWorkflow.processCurrentActivitySkippedCompletedActivity_ExecuteCode(Object sender, EventArgs e)

    at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)

    at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)

    at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)

    at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)

    at System.Workflow.Runtime.Scheduler.Run()

    Has anyone seen this issue/error before? I am unable to figure out what the underlying cause is. I know the failed workflows can be re-run and the next activity will move into In-Progress but I would like to know what the root cause is? Any help will be greatly appreciated. Thanks
    Thursday, March 19, 2015 5:34 AM

All replies

  • Hi,

    It seems that SM is not able to execute a workflow that related to ServiceRequest

    try to run the following command to find out the workflow name:

    get-scsmworkflow -id <WorkflowID>

    If the workflow does not exist in the SM console or if you would like to force deleting it then run:

    get-scsmworkflow -id <WorkflowID> | remove-scsmworkflow

    Regards,

    Yan Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by Yan Li_ Wednesday, April 1, 2015 9:45 AM
    • Unproposed as answer by Yan Li_ Wednesday, April 1, 2015 9:46 AM
    Friday, March 20, 2015 1:33 AM
  • Hi,

    Tried running get-scsmworkflow -id <WorkflowID> and the workflow does exist. Please advise what do we do in this case?

    Thanks

    Monday, March 23, 2015 5:54 AM
  • Hi,

    If possible, please remove this workflow and check the result.

    Regards,

    Yan Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 27, 2015 8:18 AM