locked
Attempt to modify Software Deployment Process causes error if Template Not Available RRS feed

  • General discussion

  • Installed: SCSM 2010 Culmulative Update 3 w/ITGRC, SQL 2008x64 Sp1, Windows Server 2008 R2 x64

    Scenario:

    When deleting a Template related to a Change request that is also the 'Change Request Template' inside a "Software Deployment Process" the Software Deployment will no longer be accessible and the following error will occur:

    Application: System Center Service Manager
    Application Version: 7.0.5826.886
    Severity: Error
    Message: Query to adapter 'dataportal:ManagementPackObjectTemplateAdapter' failed.

    System.Windows.Markup.XamlParseException: Failed object initialization (ISupportInitialize.EndInit). Query to adapter 'dataportal:ManagementPackObjectTemplateAdapter' failed.  Error at object 'Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialog' in markup file 'Microsoft.EnterpriseManagement.UI.WpfWizardFramework;V7.0.5000.0;component/propertysheetdialog.xaml'. ---> Microsoft.EnterpriseManagement.UI.DataModel.QueryFailedException: Query to adapter 'dataportal:ManagementPackObjectTemplateAdapter' failed. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPackObjectTemplate with ID 965443d4-7bc0-1f95-ccc5-14f4730b6f1d was not found.
       at Microsoft.EnterpriseManagement.TemplatesManagement.GetObjectTemplate(Guid id)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ManagementPackObjectTemplateAdapter.GetDataFromSdk(EnterpriseManagementGroup managementGroup, AdapterQueryParameters queryParameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkDataAdapter`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.Portal.Presentation.DeploymentProcessSettingsWizardData.GetTemplate(Guid templateId)
       at Microsoft.EnterpriseManagement.ServiceManager.Portal.Presentation.DeploymentProcessPage.LoadState(LoadPageEventArgs e)
       at Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialog.InitializeStoryView(IList`1 steps)
       at Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialogBase.Window_Initialized(Object sender, EventArgs e)
       at System.Windows.FrameworkElement.RaiseInitialized(EventPrivateKey key, EventArgs e)
       at System.Windows.Markup.BamlRecordReader.ElementEndInit(Object& element)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler.DoTask(IList`1 navigationNodes, NavigationModelNodeTask task, List`1 parameterList)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler.DoTask(IList`1 navigationNodes, NavigationModelNodeTask task)
       at Microsoft.EnterpriseManagement.ConsoleFramework.WindowJobRecord.ExecuteBackgroundJob(Object sender, ConsoleJobEventArgs eventargs)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    Microsoft.EnterpriseManagement.UI.DataModel.QueryFailedException: Query to adapter 'dataportal:ManagementPackObjectTemplateAdapter' failed. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPackObjectTemplate with ID 965443d4-7bc0-1f95-ccc5-14f4730b6f1d was not found.
       at Microsoft.EnterpriseManagement.TemplatesManagement.GetObjectTemplate(Guid id)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ManagementPackObjectTemplateAdapter.GetDataFromSdk(EnterpriseManagementGroup managementGroup, AdapterQueryParameters queryParameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkDataAdapter`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.Portal.Presentation.DeploymentProcessSettingsWizardData.GetTemplate(Guid templateId)
       at Microsoft.EnterpriseManagement.ServiceManager.Portal.Presentation.DeploymentProcessPage.LoadState(LoadPageEventArgs e)
       at Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialog.InitializeStoryView(IList`1 steps)
       at Microsoft.EnterpriseManagement.UI.WpfWizardFramework.PropertySheetDialogBase.Window_Initialized(Object sender, EventArgs e)
       at System.Windows.FrameworkElement.RaiseInitialized(EventPrivateKey key, EventArgs e)
       at System.Windows.Markup.BamlRecordReader.ElementEndInit(Object& element)
    Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPackObjectTemplate with ID 965443d4-7bc0-1f95-ccc5-14f4730b6f1d was not found.
       at Microsoft.EnterpriseManagement.TemplatesManagement.GetObjectTemplate(Guid id)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ManagementPackObjectTemplateAdapter.GetDataFromSdk(EnterpriseManagementGroup managementGroup, AdapterQueryParameters queryParameters)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkDataAdapter`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)

    Resolution\Workaround:
    Delete the Software Deployment Process giving the error and then recreate using a different template.

    Reason of Error:
    SCSM cannot handle deleting a Change Management Template and then propogate the changes where the Template is associated/relied upon. It should be noted that the correct way to delete a Template is to find items that depend on it and change them to another Template prior to deleting the Template. You should always change the 'Change Request Template' within the process to another Change Request Template prior to deleting the Change Reqest Template.

    Repro Steps:

    1. Create a Custom Change Request Template for Software Deployment.
    2. Assign the custom Change Request Template to the Software Deployment Processes application inside of 'Software Deployment'
    3. Delete the Template that is in 'Library Templates' that is also associated with "Software Deployment Process", then go to 'Administration->Portal->Software Deployment Processes"
    4. Then double-click on "Software Deployment" and the error condition above occurs.

    Note: This may apply to Templates associated with other items, and may give the same error above.

     


    David Baur
    • Edited by David Baur Jr Wednesday, October 6, 2010 10:51 PM Editing
    Wednesday, October 6, 2010 10:46 PM