locked
Error: Exporting Management Packs RRS feed

  • Question

  • When trying to export my SendEmail MP i get an error message which saids that "An error was encountered while running the task"

    I am unable to export any of the unsealed management packs but i am able to import fine without any problem of any kind. I thought that with the installation of the Cumalative Update 2 that it was suppose to fix these errors.

    The Complete Error Reads as follows:

    System Center Service Manager

      "An error was encountered while running the Task"

    Date: 8/29/2011 3:05:03 PM
    Application: System Center Service Manager
    Application Version: 7.0.6555.115
    Severity: Error
    Message: An error was encountered while running the task.

    Thank You

     


    Lester Daniels Jr
    Monday, August 29, 2011 7:18 PM

All replies

  • Hi,

    Have you tried using powershell to export it?

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Monday, August 29, 2011 7:25 PM
  • Hi, Andy

    As a matter of fact i have not tried to use powershell to export. Is there a bug in Service Center Management that prevents this with updates or could it be in result to the update preventing the export?

    Will try and use powershell

    Thanks


    Lester Daniels Jr
    Monday, August 29, 2011 7:29 PM
  • No, there's no known bug that I'm aware of that causes this error. I've seen this behaviour a couple of times before in earlier versions though, and those times powershell worked fine.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Monday, August 29, 2011 7:36 PM
  • Thanks for the advise...I will give powershell a try and will let you know the outcome.

    Thanks


    Lester Daniels Jr
    Monday, August 29, 2011 7:42 PM
  • AndersAsp

    I was able to get my MPs to export. Created a new folder for the exports to go to. the original folder had somehow became corrupt.

    I do have another questions pertaining to the Sendmail Deployment guide.  It saids tha for every incident event workflow (aka "<Rule>") i create that i will have export and modify the xml adn then reimport it. Is that a given fact.

    Also iin the editing of the xml it saids to search for <UpdateInstance> and edit the script. The SendMail XML has to sets of <UpdateInstance>, so does just the first group get edited or does both sets.

    Exported Send Mail xml below:

    ManagementPack ContentReadable="true" SchemaVersion="1.1" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>ManagementPack.7ca3a44a4dbf41e6a12befadbfb83360</ID>
          <Version>7.0.6555.1</Version>
        </Identity>
        <Name>SendEmail Customizations</Name>
        <References>
          <Reference Alias="EnterpriseManagement">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="CustomSystem_Notifications_Library">
            <ID>System.Notifications.Library</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="CustomSystem_WorkItem_Library">
            <ID>System.WorkItem.Library</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="IncidentManagement">
            <ID>ServiceManager.IncidentManagement.Library</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SendEmail">
            <ID>SendEmail</ID>
            <Version>1.0.0.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemCenter">
            <ID>Microsoft.SystemCenter.Subscriptions</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="EnterpriseManagement1">
            <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Administration</ID>
            <Version>7.0.6555.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <TypeDefinitions>
        <EntityTypes>
          <EnumerationTypes>
            <EnumerationValue ID="Enum.d22d4777a5f2454e8e38ba9056cde7aa" Accessibility="Public" Parent="SendEmail!MessageType" Ordinal="0" />
            <EnumerationValue ID="Enum.47b492072980470196912b9da6de47de" Accessibility="Public" Parent="SendEmail!MessageType" Ordinal="1" />
          </EnumerationTypes>
        </EntityTypes>
      </TypeDefinitions>
      <Categories>
        <Category ID="Category.e2692c945fec4b139307bd2de23b688f" Value="EnterpriseManagement!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
          <ManagementPackName>ManagementPack.7ca3a44a4dbf41e6a12befadbfb83360</ManagementPackName>
          <ManagementPackVersion>7.0.6555.0</ManagementPackVersion>
        </Category>
        <Category ID="ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumerationd9cdaaae_1589_4760_a295_1e2d9e4e0ab6.Category" Target="Template_2814001ed9764db6bd453a471210cf77" Value="EnterpriseManagement1!ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumeration" />
        <Category ID="ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumeratione9255908_adc0_4786_95b7_a60e96bff26d.Category" Target="Template_57de2d3642424d2fa2d780a9fc8504ac" Value="EnterpriseManagement1!ServiceManager.Console.NotificationManagement.NotificationTemplates.Enumeration" />
        <Category ID="Category.a92b11c810754062896c71de7b6a55c9" Target="WorkflowSubscription_6e935b94_085d_49d7_854e_9a5e071b97b5" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
        <Category ID="Category.bb31cf4f0d8448b2b6537231255b1e35" Target="WorkflowSubscription_6e935b94_085d_49d7_854e_9a5e071b97b5" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
        <Category ID="Category.1f49e403e14c437b9ac314ebd06e77e4" Target="WorkflowSubscription_e8ccbd86_77b5_42b0_b97a_b4d8826178a5" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
        <Category ID="Category.44a917190f504848a15a30fed5a89675" Target="WorkflowSubscription_e8ccbd86_77b5_42b0_b97a_b4d8826178a5" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
        <Category ID="Category.e334d64713c34223882743ba1ef03d27" Target="WorkflowSubscription_6e935b94_085d_49d7_854e_9a5e071b97b5" Value="EnterpriseManagement1!Microsoft.EnterpriseManagement.ServiceManager.Rules.WorkflowSubscriptions" />
      </Categories>
      <Monitoring>
        <Rules>
          <Rule ID="WorkflowSubscription_6e935b94_085d_49d7_854e_9a5e071b97b5" Enabled="true" Target="IncidentManagement!System.WorkItem.Incident.Wizard.AutomaticChangeIncident" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
            <Category>System</Category>
            <DataSources>
              <DataSource ID="DS" TypeID="SystemCenter!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
                <Subscription>
                  <InstanceSubscription Type="a604b942-4c7b-2fb2-28dc-61dc6f465c68">
                    <UpdateInstance>
                      <Criteria>
                        <Expression>
                          <And>
                            <Expression>
                              <UnaryExpression>
                                <ValueExpression>
                                  <Property State="Pre">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$</Property>
                                </ValueExpression>
                                <Operator>IsNull</Operator>
                              </UnaryExpression>
                            </Expression>
                            <Expression>
                              <And>
                                <Expression>
                                  <SimpleExpression>
                                    <ValueExpression>
                                      <Property State="Post">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/MessageType$</Property>
                                    </ValueExpression>
                                    <Operator>Equal</Operator>
                                    <ValueExpression>
                                      <Value>{d85dbfe9-311a-e575-2748-525b21915c79}</Value>
                                    </ValueExpression>
                                  </SimpleExpression>
                                </Expression>
                                <Expression>
                                  <UnaryExpression>
                                    <ValueExpression>
                                      <Property State="Post">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$</Property>
                                    </ValueExpression>
                                    <Operator>IsNotNull</Operator>
                                  </UnaryExpression>
                                </Expression>
                              </And>
                            </Expression>
                          </And>
                        </Expression>
                      </Criteria>
                    </UpdateInstance>
                  </InstanceSubscription>
                  <PollingIntervalInSeconds>100</PollingIntervalInSeconds>
                  <BatchSize>50</BatchSize>
                </Subscription>
              </DataSource>
            </DataSources>
            <WriteActions>
              <WriteAction ID="WA" TypeID="SystemCenter!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
                <Subscription>
                  <EnableBatchProcessing>true</EnableBatchProcessing>
                  <WindowsWorkflowConfiguration>
                    <AssemblyName>Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows</AssemblyName>
                    <WorkflowTypeName>Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows.AutomaticIncidentChangeWorkflow</WorkflowTypeName>
                    <WorkflowParameters>
                      <WorkflowArrayParameter Name="InstanceIds" Type="guid">
                        <Item>$Data/BaseManagedEntityId$</Item>
                      </WorkflowArrayParameter>
                      <WorkflowParameter Name="NotificationRulesEnabled" Type="boolean">True</WorkflowParameter>
                      <WorkflowArrayParameter Name="NotificationTemplates" Type="guid">
                        <Item>1c8597dd-303a-b5ff-e06b-8b0cffae319c</Item>
                      </WorkflowArrayParameter>
                      <WorkflowArrayParameter Name="UserAliasOrRelationships" Type="string">
                        <Item>dff9be66-38b0-b6d6-6144-a412a3ebd4ce</Item>
                      </WorkflowArrayParameter>
                    </WorkflowParameters>
                    <RetryExceptions />
                    <RetryDelaySeconds>60</RetryDelaySeconds>
                    <MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
                  </WindowsWorkflowConfiguration>
                </Subscription>
              </WriteAction>
            </WriteActions>
          </Rule>
          <Rule ID="WorkflowSubscription_e8ccbd86_77b5_42b0_b97a_b4d8826178a5" Enabled="true" Target="IncidentManagement!System.WorkItem.Incident.Wizard.AutomaticChangeIncident" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
            <Category>System</Category>
            <DataSources>
              <DataSource ID="DS" TypeID="SystemCenter!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
                <Subscription>
                  <InstanceSubscription Type="a604b942-4c7b-2fb2-28dc-61dc6f465c68">
                    <UpdateInstance>
                      <Criteria>
                        <Expression>
                          <And>
                            <Expression>
                              <UnaryExpression>
                                <ValueExpression>
                                  <Property State="Pre">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$</Property>
                                </ValueExpression>
                                <Operator>IsNull</Operator>
                              </UnaryExpression>
                            </Expression>
                            <Expression>
                              <And>
                                <Expression>
                                  <SimpleExpression>
                                    <ValueExpression>
                                      <Property State="Post">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/MessageType$</Property>
                                    </ValueExpression>
                                    <Operator>Equal</Operator>
                                    <ValueExpression>
                                      <Value>{7bff7f0f-5ef0-2fbf-4b7b-921850f73990}</Value>
                                    </ValueExpression>
                                  </SimpleExpression>
                                </Expression>
                                <Expression>
                                  <UnaryExpression>
                                    <ValueExpression>
                                      <Property State="Post">$Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$</Property>
                                    </ValueExpression>
                                    <Operator>IsNotNull</Operator>
                                  </UnaryExpression>
                                </Expression>
                              </And>
                            </Expression>
                          </And>
                        </Expression>
                      </Criteria>
                    </UpdateInstance>
                  </InstanceSubscription>
                  <PollingIntervalInSeconds>100</PollingIntervalInSeconds>
                  <BatchSize>50</BatchSize>
                </Subscription>
              </DataSource>
            </DataSources>
            <WriteActions>
              <WriteAction ID="WA" TypeID="SystemCenter!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
                <Subscription>
                  <EnableBatchProcessing>true</EnableBatchProcessing>
                  <WindowsWorkflowConfiguration>
                    <AssemblyName>Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows</AssemblyName>
                    <WorkflowTypeName>Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows.AutomaticIncidentChangeWorkflow</WorkflowTypeName>
                    <WorkflowParameters>
                      <WorkflowArrayParameter Name="InstanceIds" Type="guid">
                        <Item>$Data/BaseManagedEntityId$</Item>
                      </WorkflowArrayParameter>
                      <WorkflowParameter Name="NotificationRulesEnabled" Type="boolean">True</WorkflowParameter>
                      <WorkflowArrayParameter Name="NotificationTemplates" Type="guid">
                        <Item>3c84b0b0-6599-5289-e244-07315b7b0826</Item>
                      </WorkflowArrayParameter>
                      <WorkflowArrayParameter Name="UserAliasOrRelationships" Type="string">
                        <Item>dff9be66-38b0-b6d6-6144-a412a3ebd4ce</Item>
                      </WorkflowArrayParameter>
                    </WorkflowParameters>
                    <RetryExceptions />
                    <RetryDelaySeconds>60</RetryDelaySeconds>
                    <MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
                  </WindowsWorkflowConfiguration>
                </Subscription>
              </WriteAction>
            </WriteActions>
          </Rule>
        </Rules>
      </Monitoring>
      <Templates>
        <ObjectTemplate ID="Template_2814001ed9764db6bd453a471210cf77" TypeID="CustomSystem_Notifications_Library!System.Notification.Template.SMTP">
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Subject$">&lt;1033&gt;Pleaase Provide Additional Information for incident ID: [$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$]&lt;/1033&gt;</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Priority$">2</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/IsBodyHtml$">True</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Content$">&lt;1033&gt;Please Provide a response to the following request for more information:
    &amp;lt;br/&amp;gt;
    $Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$&lt;/1033&gt;</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Encoding$">utf-8</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/SeedClass$">System.WorkItem.Incident$a604b942-4c7b-2fb2-28dc-61dc6f465c68</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Protocol$">SMTP</Property>
        </ObjectTemplate>
        <ObjectTemplate ID="Template_57de2d3642424d2fa2d780a9fc8504ac" TypeID="CustomSystem_Notifications_Library!System.Notification.Template.SMTP">
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Subject$">&lt;1033&gt;Pleasae Close Incident ID: [$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$]&lt;/1033&gt;</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/Priority$">2</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template.SMTP']/IsBodyHtml$">True</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Content$">&lt;1033&gt;Please Act Accordingly and Close The Incident as Indicated:
    &amp;lt;br/&amp;gt;
    $Context/Property[Type='SendEmail!IncidentSendMailExtension']/Message$&lt;/1033&gt;</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Encoding$">utf-8</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/SeedClass$">System.WorkItem.Incident$a604b942-4c7b-2fb2-28dc-61dc6f465c68</Property>
          <Property Path="$Context/Property[Type='CustomSystem_Notifications_Library!System.Notification.Template']/Protocol$">SMTP</Property>
        </ObjectTemplate>
      </Templates>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="true">
          <DisplayStrings>
            <DisplayString ElementID="ManagementPack.7ca3a44a4dbf41e6a12befadbfb83360">
              <Name>SendEmail Customizations</Name>
              <Description>Customizations related to Send Email Solution</Description>
            </DisplayString>
            <DisplayString ElementID="Enum.d22d4777a5f2454e8e38ba9056cde7aa">
              <Name>Request Additional Info From Affected User</Name>
            </DisplayString>
            <DisplayString ElementID="Enum.47b492072980470196912b9da6de47de">
              <Name>Remind Affected User To Close Incident</Name>
            </DisplayString>
            <DisplayString ElementID="Template_2814001ed9764db6bd453a471210cf77">
              <Name>Request Additional Info From Affected User</Name>
              <Description>Use for Request Additional Info</Description>
            </DisplayString>
            <DisplayString ElementID="Template_57de2d3642424d2fa2d780a9fc8504ac">
              <Name>Remind Affected User To Close Incident</Name>
              <Description>Use for Remind Affected User To Close Incident</Description>
            </DisplayString>
            <DisplayString ElementID="WorkflowSubscription_6e935b94_085d_49d7_854e_9a5e071b97b5">
              <Name>Send Email to Affected User When Message Type is 'Request Additional Info From Affected User'</Name>
              <Description>Send Email To Affected User To Request</Description>
            </DisplayString>
            <DisplayString ElementID="WorkflowSubscription_e8ccbd86_77b5_42b0_b97a_b4d8826178a5">
              <Name>Send Email to Affected User When Message Type is 'Remind Affected User To Close Incident'</Name>
              <Description>Send Email To Affected User to Remind</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

    Thanks


    Lester Daniels Jr
    Tuesday, August 30, 2011 2:58 PM
  • Yes, for every new SendEmail related workflow you create you will have to edit the XML code. Otherwise the workflows won't trigger if you use the SendEmail function more then once on an incident.

    There will be one <UpdateInstance> for every workflow you create. So in this case you will have to edit both sets.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    Sunday, September 4, 2011 10:00 AM
  • AndersAsp

    So when i go into Incident Event  Workflows and Add a new event i will then have to go out to the sendmail log and edit the XML code? I had an incident that i created as a test the workflow event was "Send Email to affected user to request more information on incident." On the incident profile i clicked on send email and i submitted the request to the affected user. When i checked the Workflows status log i saw that the process was completed successfully with no errors but the affected user still did not receive a notification by email.

    Will i also have to edit the XML when i use the Service Manager Authoring Tool to create workflows? If i create seven workflows then i will have alot of editing to perform on the sendmail XML.

    Thanks

    //Lester


    Lester Daniels Jr
    Thursday, September 8, 2011 12:20 PM