Problem with Custom Incident Request Form - SCSM Console Craches

Hello, Dear Colleagues.

I have created Custom Incident Request Form:

1). Custom Incident Request Form with Authoring Tool 2012 R2 with custom Property BranchModel;

Used this links: 123.

2). Edited XML and added References and TypeProjections.

3). Sealed, made bundle and imported MP in SCSM;

But while trying to created Incident Request Template based on appropriate class Incident Request Printer Repair, SCSM Console Craches. 

My MP:

<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>ManagementPack.IR.PrinterRepair</ID>
      <Version>1.0.0.6</Version>
    </Identity>
    <Name>ManagementPack.IR.PrinterRepair</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_6aa99e9c_efa8_48e7_aeca_fe2ebcfcbf91">
        <ID>System.WorkItem.Incident.Library</ID>
        <Version>7.5.3079.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="WorkItem">
        <ID>System.WorkItem.Library</ID>
        <Version>7.5.2905.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="SupportingItem">
        <ID>System.SupportingItem.Library</ID>
        <Version>7.5.2905.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="CoreKnowledge">
        <ID>System.Knowledge.Library</ID>
        <Version>7.5.2905.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="Catalog">
        <ID>System.ServiceCatalog.Library</ID>
        <Version>7.5.2905.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
    </References>
  </Manifest>
  <TypeDefinitions>
    <EntityTypes>
      <ClassTypes>
        <ClassType ID="IR_PrinterRepair" Accessibility="Public" Abstract="false" Base="Alias_6aa99e9c_efa8_48e7_aeca_fe2ebcfcbf91!System.WorkItem.Incident" Hosted="false" Singleton="false" Extension="false">
          <Property ID="BranchName" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
        </ClassType>
      </ClassTypes>
      <TypeProjections>
        <TypeProjection ID="Frm_IR_PrinterRepair_TypeProjection" Accessibility="Public" Type="IR_PrinterRepair">
          <Component Path="$Context/Path[Relationship='WorkItem!System.WorkItemAffectedUser']$" Alias="AffectedUser" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="AssignedTo" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemClosedByUser']$" Alias="ClosedBy" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemCreatedByUser']$" Alias="CreatedBy" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAffectedUser']$" Alias="AffectedUser" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToConfigItem']$" Alias="RelatedConfigItems" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAboutConfigItem']$" Alias="AboutConfigItem" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAboutConfigItem' TypeConstraint='System!System.Service']$" Alias="AffectedServices" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToWorkItem']$" Alias="RelatedWorkItems">
            <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="RelatedWorkItemAssignedTo" />
          </Component>
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemRelatesToWorkItem' SeedRole='Target']$" Alias="RelatedWorkItemSource">
            <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$" Alias="RelatedWorkItemAssignedTo" />
          </Component>
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasFileAttachment']$" Alias="FileAttachments">
            <Component Path="$Target/Path[Relationship='SupportingItem!System.FileAttachmentAddedByUser']$" Alias="FileAttachmentAddedBy" />
          </Component>
          <Component Path="$Target/Path[Relationship='CoreKnowledge!System.EntityLinksToKnowledgeDocument']$" Alias="RelatedKnowledgeArticles" />
          <Component Path="$Target/Path[Relationship='Catalog!System.WorkItemRelatesToRequestOffering']$" Alias="RelatedRequestOffering" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasActionLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.ActionLog']$" Alias="ActionLog" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasCommentLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.AnalystCommentLog']$" Alias="AnalystCommentLog" />
          <Component Path="$Target/Path[Relationship='WorkItem!System.WorkItemHasCommentLog' TypeConstraint='WorkItem!System.WorkItem.TroubleTicket.UserCommentLog']$" Alias="EndUserCommentLog" />
        </TypeProjection>
      </TypeProjections>
    </EntityTypes>
  </TypeDefinitions>
  <Categories>
    <Category ID="ManagementPack.IR.PrinterRepair.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
      <ManagementPackName>ManagementPack.IR.PrinterRepair</ManagementPackName>
      <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
    </Category>
  </Categories>
  <Presentation>
    <Forms>
      <Form ID="Frm_IR_PrinterRepair" Accessibility="Public" Target="Frm_IR_PrinterRepair_TypeProjection" Assembly="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms" TypeName="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms.IncidentFormControl">
        <Category>Form</Category>
        <Customization>
          <AddControl Parent="TabControl" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.TabItem" Left="336" Top="17" Right="0" Bottom="0" Row="0" Column="0" />
          <PropertyChange Object="TabItem_1" Property="Header">
            <NewValue>Printer Info</NewValue>
          </PropertyChange>
          <AddControl Parent="Grid_1" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.TextBox" Left="273" Top="20" Right="365" Bottom="1028" Row="0" Column="0" />
          <PropertyChange Object="TextBox_1" Property="HorizontalAlignment">
            <NewValue>Left</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>273,20,0,1028</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="VerticalAlignment">
            <NewValue>Top</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>273,20,0,0</NewValue>
          </PropertyChange>
          <AddControl Parent="Grid_1" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.TextBox" Left="147" Top="97" Right="491" Bottom="951" Row="0" Column="0" />
          <PropertyChange Object="TextBox_2" Property="HorizontalAlignment">
            <NewValue>Left</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>147,97,0,951</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="VerticalAlignment">
            <NewValue>Top</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>147,97,0,0</NewValue>
          </PropertyChange>
          <Move X="230.003999845842" Y="-5">
            <Element Name="TextBox_1" />
          </Move>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,595,1023</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,0,1023</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,0,0</NewValue>
          </PropertyChange>
          <Resize Type="BottomRight" X="-158" Y="-30">
            <Element Name="TextBox_1" />
          </Resize>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,437,993</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,0,993</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Margin">
            <NewValue>42.9960001541581,25,0,0</NewValue>
          </PropertyChange>
          <Move X="104" Y="-4">
            <Element Name="TextBox_2" />
          </Move>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,595,947</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,947</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,0</NewValue>
          </PropertyChange>
          <Resize Type="BottomRight" X="-158" Y="-19">
            <Element Name="TextBox_2" />
          </Resize>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,437,928</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,928</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,0</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_1" Property="Text">
            <NewValue></NewValue>
          </PropertyChange>
          <PropertyBindingChange Object="TextBox_1" Property="Text">
            <NewBinding Enabled="True" Path="ComponentAlias_5fdf5ef3_e8df_4336_afa7_ae4318aeb4f1.DisplayName" Mode="Default" BindsDirectlyToSource="False" UpdateSourceTrigger="Default" />
          </PropertyBindingChange>
          <PropertyChange Object="TextBox_2" Property="Text">
            <NewValue></NewValue>
          </PropertyChange>
          <PropertyBindingChange Object="TextBox_2" Property="Text">
            <NewBinding Enabled="True" Path="BranchName" Mode="Default" BindsDirectlyToSource="False" UpdateSourceTrigger="Default" />
          </PropertyBindingChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,437,928</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,928</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,0</NewValue>
          </PropertyChange>
          <Resize Type="BottomRight" X="0" Y="-14">
            <Element Name="TextBox_2" />
          </Resize>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,437,914</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,914</NewValue>
          </PropertyChange>
          <PropertyChange Object="TextBox_2" Property="Margin">
            <NewValue>43,101,0,0</NewValue>
          </PropertyChange>
        </Customization>
      </Form>
    </Forms>
  </Presentation>
  <LanguagePacks>
    <LanguagePack ID="UKR" IsDefault="true">
      <DisplayStrings>
        <DisplayString ElementID="ManagementPack.IR.PrinterRepair">
          <Name>ManagementPack.IR.PrinterRepair</Name>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
    <LanguagePack ID="ENU" IsDefault="false">
      <DisplayStrings>
        <DisplayString ElementID="ManagementPack.IR.PrinterRepair">
          <Name>ManagementPack.IR.PrinterRepair</Name>
        </DisplayString>
        <DisplayString ElementID="IR_PrinterRepair">
          <Name>Incident Printer Repair</Name>
          <Description>This class inherits from Incident.</Description>
        </DisplayString>
        <DisplayString ElementID="IR_PrinterRepair" SubElementID="BranchName">
          <Name>Branch Name</Name>
        </DisplayString>
        <DisplayString ElementID="Frm_IR_PrinterRepair">
          <Name>Frm_IR_PrinterRepair</Name>
          <Description>Specify your form description.</Description>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
  </LanguagePacks>
  <Resources>
    <Assembly ID="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms" Accessibility="Public" FileName="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms.dll" HasNullStream="false" QualifiedName="Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </Resources>
</ManagementPack>
Could you help me with that MP? Thanks.
July 29th, 2015 5:09am

Although I do not think this is the reason for the crash, i found this curious:

Your close tags for components in type projections section are not correct. Some are set to <Component.... /> while others are <Component..... /> </Component> (redundant closing tags)

Additionally, I am confused as to why you are including the incident form .dll as a resource... you dont need that. Did you extend the incident class or create a new custom one? If you created a new custom one you should have your own .dll based on a custom form you made (unless you just extended the class then you can just edit the MP to add additional properties without editing the built-in form). Even if you edited the incident form the changes are saved to a MP not the actual form .dll....

Free Windows Admin Tool Kit Click here and download it now
July 29th, 2015 2:38pm

Please check the Operations Manager log on computer where you got this crash and check for any error with Console source. This is help you to find the root cause. If error will be not helpful, please past it here.

July 29th, 2015 6:00pm

Hello, Anton and SirLearnAlot.

Anton , unfortunately, there is no records in Operation Manager in Event Viewer at this time.

SirLearnAlot, I'm adding custom form, do not want to extend. In such case I need to provide .dll. I choose Microsoft.EnterpriseManagement.ServiceManager.Incident.Forms.dll from C:\Program Files (x86)\Microsoft System Center 2012\Service Manager Authoring\Library\Incident. Name looks suitable)) Some time ago I successfully tried to extend IR form, but I need separate  form for specific IR. No luck yet))

Thanks.

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 3:54am

Thats not a custom form thats an out of box incident form .dll....

July 30th, 2015 1:35pm

Thats not a custom form thats an out of box incident form .dll....

What do you mean, SirLearnAlot?
Free Windows Admin Tool Kit Click here and download it now
August 7th, 2015 3:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics