locked
Management Pack import issue RRS feed

  • Question

  • Hello,

    When making a change to the default IR form, the change is made in the Authoring Tool and all looks fine. All I'm doing is expanding the description box to a readable size. When I try to import the new pack I get:

    I've hunted for the wayward extension it's indicating but cannot find it anywhere. 
    As this will affect any further customization's on the form it is a problem.

    Can anyone give me any pointers on finding the errant extension or ideally deleting it and going with a new customized form altogether?

    Tuesday, April 14, 2015 10:41 AM

All replies

  • Get-SCSMFormCustomForm_a01edfeb_705f_4a15_8cb4_481c0ea9af35  |selectidentifier

    delivers the MP

    1|BusinessServiceExtension/5834064ae94ad623|1.0.0.0|CustomForm_a01edfeb_705f_4a15_8cb4_481c0ea9af35||       


    Patrick Wahlmüller

    Tuesday, April 14, 2015 12:16 PM
  • Thanks for that Patrick, unfortunately my Powershell skills are not what they should be.
    I ran the command you supplied and got no results so have substituted the custom form data from mine but it will not run.

    I just get: A positional parameter cannot be found that accepts argument '¦'

    If you could put your supplied information into 'for a nugget' format that would be superb.

    Thanks.


    • Edited by Orc67 Tuesday, April 14, 2015 1:25 PM
    Tuesday, April 14, 2015 1:25 PM
  • Sry, I was somewhat short.

    To run this you have to install smlets (Link to Smlets). I redesigned the copy&paste, of course you have to enter CustomForm_4111.... instead of my id.

    Get-SCSMForm CustomForm_a01edfeb_705f_4a15_8cb4_481c0ea9af35  |select identifier

    hth


    Patrick Wahlmüller

    Tuesday, April 14, 2015 2:02 PM
  • Thanks Patrick, thanks for the help, that worked lovely.
    So I've made the required changes and when sealing them re-importing it gives me this:

    This reads to me that the customized form already has an extension (which it doesn't). When sealed it is incremented by the Authoring Tool and all looks ok until this point. As it's still 'form base is not valid' I'm at a loss.
    Do you know how I can find this errant extension? I've checked in Classes, Forms and Workflows in the Auth Tool and there is nothing I can see, here is what the tool shows me:

    Any further thoughts or pointers?

    Wednesday, April 15, 2015 9:43 AM
  • Can you post the contents of ConsoleForm(Customized) - I'll give it a try.

    Patrick Wahlmüller


    Wednesday, April 15, 2015 6:38 PM
  • Tried posting it on OneDrive but verification failed for some reason so here it is:

    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>EsriUK.IR.Form.Customizations</ID>
          <Version>1.0.0.1</Version>
        </Identity>
        <Name>EsriUK.IR.Form.Customizations</Name>
        <References>
          <Reference Alias="System">
            <ID>System.Library</ID>
            <Version>7.5.8501.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Console">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_37e1a304_9c2b_4c49_873b_205b9d2e3c14">
            <ID>ServiceManager.IncidentManagement.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_32fdf06a_0cc3_4c3c_ac15_471f264022e6">
            <ID>System.WorkItem.Incident.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f">
            <ID>System.WorkItem.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_57c78cca_6430_4022_81d9_eed079e8159d">
            <ID>System.WorkItem.Activity.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_a568679e_5ed6_472b_a85e_cabd2a16aa5e">
            <ID>System.Knowledge.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Alias_feef33da_daa1_4c65_90ee_04eb1c2de288">
            <ID>System.SupportingItem.Library</ID>
            <Version>7.5.3079.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <TypeDefinitions>
        <EntityTypes>
          <TypeProjections>
            <TypeProjection ID="CustomForm_4111a1aa_42fa_4a5b_ae73_f6dfb007bc4f_TypeProjection" Accessibility="Public" Type="Alias_32fdf06a_0cc3_4c3c_ac15_471f264022e6!System.WorkItem.Incident">
              <Component Path="$Context/Path[Relationship='Alias_32fdf06a_0cc3_4c3c_ac15_471f264022e6!System.WorkItem.IncidentPrimaryOwner']$" Alias="PrimaryOwner" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAffectedUser']$" Alias="AffectedUser" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAssignedToUser']$" Alias="AssignedUser" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemCreatedByUser']$" Alias="CreatedByUser" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketClosedByUser']$" Alias="ClosedByUser" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketResolvedByUser']$" Alias="ResolvedByUser" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketHasActionLog']$" Alias="ActionLogs" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketHasUserComment']$" Alias="UserComments" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketHasAnalystComment']$" Alias="AnalystComments" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicketHasNotificationLog' TypeConstraint='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItem.TroubleTicket.SmtpNotificationLog']$" Alias="SMTPNotifications" />
              <Component Path="$Context/Path[Relationship='Alias_57c78cca_6430_4022_81d9_eed079e8159d!System.WorkItemContainsActivity']$" Alias="Activities">
                <Component Path="$Context/Path[Relationship='Alias_57c78cca_6430_4022_81d9_eed079e8159d!System.WorkItemContainsActivity' SeedRole='Target']$" Alias="ParentWorkItem" />
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemCreatedByUser']$" Alias="ActivityCreatedBy" />
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAssignedToUser']$" Alias="ActivityAssignedTo" />
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAboutConfigItem']$" Alias="ActivityAboutConfigItem" />
              </Component>
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemRelatesToWorkItem']$" Alias="RelatedWorkItems">
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAffectedUser']$" Alias="RWIAffectedUser" />
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAssignedToUser']$" Alias="RWIAssignedUser" />
              </Component>
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemRelatesToWorkItem' SeedRole='Target']$" Alias="RelatedWorkItemsSource">
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAffectedUser']$" Alias="RWIAffectedUser" />
                <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAssignedToUser']$" Alias="RWIAssignedUser" />
              </Component>
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAboutConfigItem']$" Alias="AffectedConfigItems" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemRelatesToConfigItem']$" Alias="RelatedConfigItems" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemAboutConfigItem' TypeConstraint='System!System.Service']$" Alias="RelatedServiceRequests" />
              <Component Path="$Context/Path[Relationship='Alias_a568679e_5ed6_472b_a85e_cabd2a16aa5e!System.EntityLinksToKnowledgeDocument']$" Alias="RelatedKnowledgeArticles" />
              <Component Path="$Context/Path[Relationship='Alias_b3fbcfaa_a1c3_40a1_bd06_fa1a3b3f695f!System.WorkItemHasFileAttachment']$" Alias="FileAttachments">
                <Component Path="$Context/Path[Relationship='Alias_feef33da_daa1_4c65_90ee_04eb1c2de288!System.FileAttachmentAddedByUser']$" Alias="FileAttachmentAddedBy" />
              </Component>
            </TypeProjection>
          </TypeProjections>
        </EntityTypes>
      </TypeDefinitions>
      <Categories>
        <Category ID="EsriUK.IR.Form.Customizations.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
          <ManagementPackName>EsriUK.IR.Form.Customizations</ManagementPackName>
          <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
          <ManagementPackPublicKeyToken>77133b9fe25391c8</ManagementPackPublicKeyToken>
        </Category>
      </Categories>
      <Presentation>
        <Forms>
          <Form ID="CustomForm_4111a1aa_42fa_4a5b_ae73_f6dfb007bc4f" Accessibility="Public" Target="CustomForm_4111a1aa_42fa_4a5b_ae73_f6dfb007bc4f_TypeProjection" BaseForm="Alias_37e1a304_9c2b_4c49_873b_205b9d2e3c14!System.WorkItem.Incident.ConsoleForm" TypeName="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms.IncidentFormControl">
            <Category>Form</Category>
            <Customization>
              <PropertyChange Object="PrimaryOwner" Property="Visibility">
                <NewValue>Collapsed</NewValue>
              </PropertyChange>
              <PropertyChange Object="labelPrimaryOwner" Property="Visibility">
                <NewValue>Collapsed</NewValue>
              </PropertyChange>
            </Customization>
          </Form>
        </Forms>
      </Presentation>
      <LanguagePacks>
        <LanguagePack ID="ENG" IsDefault="true">
          <DisplayStrings>
            <DisplayString ElementID="EsriUK.IR.Form.Customizations">
              <Name>EsriUK.IR.Form.Customizations</Name>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
        <LanguagePack ID="ENU" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="EsriUK.IR.Form.Customizations">
              <Name>EsriUK.IR.Form.Customizations</Name>
            </DisplayString>
            <DisplayString ElementID="CustomForm_4111a1aa_42fa_4a5b_ae73_f6dfb007bc4f">
              <Name>System.WorkItem.Incident.ConsoleForm  (Customized)</Name>
              <Description>System.WorkItem.Incident.ConsoleForm  (Customized)</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

    Thursday, April 16, 2015 9:19 AM
  • Your MP works fine.

    You have to have another MP which extends the incident form.

    Did the script I provided run? What does it return?



    Patrick Wahlmüller


    Thursday, April 16, 2015 9:31 AM
  • The script worked fine and produced:

    Thursday, April 16, 2015 10:28 AM
  • So it is the same MP - isn't it?

    • Delete the MP in Service Manager
    • Restart Service get-service-DisplayName'System Center Data Access Service'|Restart-Service # in admin mode
    • Restart Console

    The script should not find the old form any more.

    Import the MP.

    hth


    Patrick Wahlmüller


    Thursday, April 16, 2015 11:21 AM
  • Thanks for your patience and help with this Patrick.

    That was my original thinking but it now has dependencies:

    So if I first export and delete these to be able to delete the custom MP and as one of them is the Config Library, would the deletion of the custom MP not have a serious effect on this when importing them again after deletion of the custom MP?

    If I use powershell to force delete the custom MP, again would there not be a knock on effect?

    Thursday, April 16, 2015 11:49 AM
  • Ah, ok. So you already have an extension. What do you
    want? If you want to change your extension, you should export the MP (you’ll get your actual xml) and change it, seal it and import it again. That should work.



    Patrick Wahlmüller


    Thursday, April 16, 2015 12:46 PM
  • All I'm looking to do is to extend the size of the Description window to a more user friendly size. I have found and deleted an errant class from the form but still get an import error (form base is not valid).
    The only extension left on the form comes from the 'SendEmail' MP (https://scsmsendemail.codeplex.com/) which we are no longer using.

    It's the same story when trying to delete this extension to return the IR form to it's original state as it now has dependencies:

    Ideally I'd like to just get rid of the extensions on the form and start from scratch but these dependencies are making it difficult. In an ideal world there would be a way of simply overwriting the existing form with the default without messing up workflows and other MP's.

    I'm still under the impression this product is very much a work in progress and rather than taking apart SCOM and rebuilding it as SCSM, MS should at least for once have considered then end user rather than their profit margin. I've already been in a support call with MS regarding a different issue with due dates and this has been escalated up the chain as there is no available fix from them which tells me any pre release testing was minimal at best.

    Sorry for the rant but I'm reaching the end of my rope with this application.

    Again thanks for your help and any suggestions.

    Friday, April 17, 2015 10:40 AM
  • @Technical: Since all three MPs are unsealed, you could export them, delete the MP with the Extension, and import all MPs again. Maybe you have to restart Console and the System Center Data Access Service.

    Service Manager is not easy to understand, so you need some time to get used to it. But I also think, Microsoft should invest more money & time into it, preferably to the User Interface (Analyst & Enduser).


    Patrick Wahlmüller


    Monday, April 20, 2015 12:24 PM