locked
A Windows Workflow Foundation workflow failed during execution. RRS feed

  • Question

  • Hi all.

    im working on a template to notify end user that the incident was resolved.

    currently i have end users notifications with custom templates for new incidents, request additional information and for analyst, when incident change from pending to active, and it works fine, except for this one.

    i use the default "end user notification template" for troubleshooting and it works fine, but when i change to my custom template..it fails with the following error:

    A Windows Workflow Foundation workflow failed during execution.
     
    Workflow Type: Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows.AutomaticIncidentChangeWorkflow

    Workflow Identifier: 19459229-fc99-28e8-be79-c4615d0ae442

    Exception Type: Microsoft.EnterpriseManagement.Common.ManagementPackException

    Exception Message: Cannot resolve identifier System_WorkItem_Incident_Library!System.WorkItem.Incident in the context of management pack ManagementPack.de64258e965344a7b648e226c818998a. Unknown alias: System_WorkItem_Incident_Library

    Exception Stack:    at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementReference`1.Initialize(ManagementPack mp, String alias, String identifier)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementReference`1..ctor(ManagementPack mp, String name)
       at Microsoft.EnterpriseManagement.Configuration.Verification.VerifyReference.MPElementSubstituter.GetReference[T](String mpelementstring)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReferencesIncludeTokens[T](String reference)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReferences[T](String reference)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReference[T](String reference)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.ITokenGenerator.ResolveClassFromReference(String className)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.PropertyTokenGenerator.GenerateToken(String tokenExpression)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.TokenizedMessage.ExtractTokensByType(String stringToParse, Regex tokenType, ITokenGenerator tokenGenerator)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.TokenizedMessage..ctor(String rawString, ManagementPack templateManagementPack, HashSet`1 relationshipSet)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.RecipientGroupMessage..ctor(String rawSubject, String rawMessage, ManagementPack templateManagementPack, HashSet`1 relationshipSet, CreatableEnterpriseManagementObject smtpTemplateInstance)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity.CreateRecipientGroupMessage(ICollection`1 cultureCollection, IList`1 templateList, HashSet`1 relationshipSet)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Health Service Modules" />
        <EventID Qualifiers="49152">33880</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-10-10T23:59:10.000000000Z" />
        <EventRecordID>1168644</EventRecordID>
        <Channel>Operations Manager</Channel>
        <Computer></Computer>
        <Security />
      </System>
      <EventData>
        <Data>Microsoft.EnterpriseManagement.ServiceManager.Incident.Workflows.AutomaticIncidentChangeWorkflow</Data>
        <Data>19459229-fc99-28e8-be79-c4615d0ae442</Data>
        <Data>Microsoft.EnterpriseManagement.Common.ManagementPackException</Data>
        <Data>Cannot resolve identifier System_WorkItem_Incident_Library!System.WorkItem.Incident in the context of management pack ManagementPack.de64258e965344a7b648e226c818998a. Unknown alias: System_WorkItem_Incident_Library</Data>
        <Data>   at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementReference`1.Initialize(ManagementPack mp, String alias, String identifier)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementReference`1..ctor(ManagementPack mp, String name)
       at Microsoft.EnterpriseManagement.Configuration.Verification.VerifyReference.MPElementSubstituter.GetReference[T](String mpelementstring)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReferencesIncludeTokens[T](String reference)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReferences[T](String reference)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPack.ProcessElementReference[T](String reference)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.ITokenGenerator.ResolveClassFromReference(String className)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.PropertyTokenGenerator.GenerateToken(String tokenExpression)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.TokenizedMessage.ExtractTokensByType(String stringToParse, Regex tokenType, ITokenGenerator tokenGenerator)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.TokenizedMessage..ctor(String rawString, ManagementPack templateManagementPack, HashSet`1 relationshipSet)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.RecipientGroupMessage..ctor(String rawSubject, String rawMessage, ManagementPack templateManagementPack, HashSet`1 relationshipSet, CreatableEnterpriseManagementObject smtpTemplateInstance)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity.CreateRecipientGroupMessage(ICollection`1 cultureCollection, IList`1 templateList, HashSet`1 relationshipSet)
       at Microsoft.EnterpriseManagement.Notifications.Workflows.SendNotificationsActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()</Data>
      </EventData>
    </Event>

    All of my custom templates are in the same custom MP.. for templates only. i have a custom MP for custom workflows too.

    Thanks in advance

    PEM

     

     

    Tuesday, October 11, 2011 12:35 AM

Answers

  • Hi,

    I guess you have copy/paste parts of your notification template from another template? That would work fine as long as you store them in the same MP, but if you save it another MP it won't.

    Remove all "parameters" and use the insert button to add them again. This will most likely resolve the issue.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    • Marked as answer by Pedro Monteiro Thursday, October 20, 2011 10:53 PM
    Tuesday, October 11, 2011 7:14 AM
  • hi Anders

    i made the changes that you suggest and it works fine.

     

    thks for your time

     

    regards

    PEM

    • Marked as answer by Pedro Monteiro Thursday, October 20, 2011 10:53 PM
    Thursday, October 20, 2011 10:53 PM

All replies

  • Hi,

    I guess you have copy/paste parts of your notification template from another template? That would work fine as long as you store them in the same MP, but if you save it another MP it won't.

    Remove all "parameters" and use the insert button to add them again. This will most likely resolve the issue.

    Regards
    //Anders


    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se
    • Marked as answer by Pedro Monteiro Thursday, October 20, 2011 10:53 PM
    Tuesday, October 11, 2011 7:14 AM
  • hi Anders

    i made the changes that you suggest and it works fine.

     

    thks for your time

     

    regards

    PEM

    • Marked as answer by Pedro Monteiro Thursday, October 20, 2011 10:53 PM
    Thursday, October 20, 2011 10:53 PM