locked
Unable to Delete or Modify Incident Workflow RRS feed

  • Question

  • I have a particular workflow that was created that will not allow me to delete or modify it. Attempting to delete it will result in:

    Date: 1/13/2011 6:26:07 AM
    Application: System Center Service Manager
    Application Version: 7.0.5826.0
    Severity: Error
    Message: Object reference not set to an instance of an object.

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
       at Microsoft.EnterpriseManagement.Common.Internal.NotificationSubscriptionServiceProxy.DeleteWorkflowSubscription(String xmlConfiguration)
       at Microsoft.EnterpriseManagement.Subscriptions.SubscriptionManagement.DeleteSubscription(IWorkflowSubscriptionBase workflowOrNotificationSubscription)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.WorkflowSubscriptionBaseWriteAdapter.WriteSdkObject(EnterpriseManagementGroup managementGroup, WorkflowSubscriptionBase sdkObject, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.WriteSdkObject(EnterpriseManagementGroup managementGroup, IList`1 sdkObjects, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
       at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)

    and attempting to modify it will cause it to come up with:

     

    Date: 1/13/2011 6:29:08 AM
    Application: Edit Incident Event Workflow
    Application Version: 7.0.5826.0
    Severity: Error
    Message: Query to adapter 'dataportal:WorkflowSubscriptionBaseWriteAdapter' failed.

    Microsoft.EnterpriseManagement.UI.DataModel.QueryFailedException: Query to adapter 'dataportal:WorkflowSubscriptionBaseWriteAdapter' failed. ---> Microsoft.EnterpriseManagement.Common.ServerDisconnectedException: The client has been disconnected from the server. Please call ManagementGroup.Reconnect() to reestablish the connection. ---> System.InvalidOperationException: The object cannot be updated because it does not exist in the system.
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Common.Internal.ExceptionHandlers.HandleChannelExceptions(Exception ex)
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleChannelExceptions(String methodName, Exception ex)
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
       at Microsoft.EnterpriseManagement.Common.Internal.NotificationSubscriptionServiceProxy.UpsertWorkflowSubscription(Nullable`1 managementPackId, String xmlConfiguration, Nullable`1 targetId, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.Subscriptions.SubscriptionManagement.UpdateSubscriptionInternal(IWorkflowSubscriptionBase workflowOrNotificationSubscription, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.Subscriptions.SubscriptionManagement.UpdateSubscription(IWorkflowSubscriptionBase workflowOrNotificationSubscription, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.WorkflowSubscriptionBaseWriteAdapter.WriteSdkObject(EnterpriseManagementGroup managementGroup, WorkflowSubscriptionBase sdkObject, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.WriteSdkObject(EnterpriseManagementGroup managementGroup, IList`1 sdkObjects, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
       at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.UI.DataModel.DataPortalService.EndQuery(IAsyncResult result)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Uri dataSourceUri, IList`1 inputs, Dictionary`2 parameterList, DataQueryBase query)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Dictionary`2 parameterList, IList`1 inputs, Type adapterType, Uri adapterUri)
       at Microsoft.EnterpriseManagement.ServiceManager.Incident.Wizards.AutomaticIncidentChanges.AICWizardHelper.WriteWorkflowSubscription(IDataItem subscription, Boolean newSubscription, IDataItem mp)
       at Microsoft.EnterpriseManagement.ServiceManager.Incident.Wizards.AutomaticIncidentChanges.AutomaticChangesDataPacket.CreateModifyAutomaicIncidentChangeRule()
       at Microsoft.EnterpriseManagement.ServiceManager.Incident.Wizards.AutomaticIncidentChanges.AutomaticChangesDataPacket.AcceptChanges(WizardMode wizardMode)
       at Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialogBase.bgw_DoAcceptWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    Microsoft.EnterpriseManagement.Common.ServerDisconnectedException: The client has been disconnected from the server. Please call ManagementGroup.Reconnect() to reestablish the connection. ---> System.InvalidOperationException: The object cannot be updated because it does not exist in the system.
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Common.Internal.ExceptionHandlers.HandleChannelExceptions(Exception ex)
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleChannelExceptions(String methodName, Exception ex)
       at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
       at Microsoft.EnterpriseManagement.Common.Internal.NotificationSubscriptionServiceProxy.UpsertWorkflowSubscription(Nullable`1 managementPackId, String xmlConfiguration, Nullable`1 targetId, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.Subscriptions.SubscriptionManagement.UpdateSubscriptionInternal(IWorkflowSubscriptionBase workflowOrNotificationSubscription, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.Subscriptions.SubscriptionManagement.UpdateSubscription(IWorkflowSubscriptionBase workflowOrNotificationSubscription, IList`1 mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.WorkflowSubscriptionBaseWriteAdapter.WriteSdkObject(EnterpriseManagementGroup managementGroup, WorkflowSubscriptionBase sdkObject, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.WriteSdkObject(EnterpriseManagementGroup managementGroup, IList`1 sdkObjects, IDictionary`2 parameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkWriteAdapter`1.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
       at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    System.InvalidOperationException: The object cannot be updated because it does not exist in the system.

    The workflow allows me to see the current configuration (I can select it from the list and "edit" it, I just cannot save the changes). All the other workflows work correctly, and allow editing and removing. This particular one is causing issues since it will not allow a particular technician to have incidents assigned to them, since creating a competing workflow to do the same thing this was intended to doesn't work. Any suggestions as to how I might be able to remove this broken one from my list?

    Thursday, January 13, 2011 2:31 PM

All replies

  • Warning: Please be very careful editing MPs!

    You can export the MP (SAVE A COPY), delete all references to your workflow (there are several places, including Rules, Category, Display Strings, etc.), re-import your MP. Your workflow should be gone.

    Note that status rows will remain in the DB until grooming gets rid of them but since the workflow is gone from the UI, this shouldn't be a problem.


    Makenzie Snow
    Monday, February 7, 2011 6:18 PM