none
Unable to create new WorkflowInstance for WorkflowDefinition [guid] in fresh R2 installation RRS feed

  • Question

  • Hi,

    The error messages in the post in the link below are almost exactly like these we have generated, which are posted below.  We developed and are working on a FIM 2010 MSDN installation of FIM that was upgraded to R2 which included the uninstalling of the FIM Service and reinstalling the R2 FIM Service.  In this environment the workflow executes properly. But when installed in a FIM environment that is a fresh R2 install of FIM the error occurs.  The FIM Service is running on only on server and the SQL database is on a separate server but on same network segment and no firewalls in between. The indication in the link below is a file incompatibility between version of FIM R2 but I am at a loss to know what files are incompatible or how to find or update them in our project.

    http://social.technet.microsoft.com/Forums/en-US/ilm2/thread/f319fbdf-def6-4b4a-8220-57d416c9b26a/

    FIM Request Error text:
    <RequestStatusDetail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" DetailLevel="Information" EntryTime="2012-08-15T08:47:47.2112316Z">Unable to create new WorkflowInstance for WorkflowDefinition 'f64e8568-fb14-4153-ba6d-4facbba9aa03'.</RequestStatusDetail> ---------------------------

    Event Logs:
    *****

    WorkflowManager could not deserialize XOML definition: '<ns0:SequentialWorkflow x:Name="SequentialWorkflow" ActorId="00000000-0000-0000-0000-000000000000" WorkflowDefinitionId="00000000-0000-0000-0000-000000000000" RequestId="00000000-0000-0000-0000-000000000000" TargetId="00000000-0000-0000-0000-000000000000" xmlns:ns1="clr-namespace:RITC.WorkflowActivitiesLibrary.Activities;Assembly=RITC.WorkflowActivitiesLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3ab2fec4bca18735" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns0="clr-namespace:Microsoft.ResourceManagement.Workflow.Activities;Assembly=Microsoft.ResourceManagement, Version=4.1.2273.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

                    <ns1:RitCActivity x:Name="authenticationGateActivity1" RitCPortalBaseUrl="http://ritc.cloudapp.net" TimerResourceId="e47df9f8-4201-42fd-aa76-2b04353c41ad" AgentKey="ADWQ#54639e43-a17d-4cf1-9d7d-8faf3081e6b4" TimerPeriod="240" DoStaticExtract="False" AgentSecret="g4gJ6vr7u7I5vdF2" />

    </ns0:SequentialWorkflow>'.

    ****

    Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManagerException: Unable to create new WorkflowInstance for WorkflowDefinition 'f64e8568-fb14-4153-ba6d-4facbba9aa03'. ---> System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation.

       at System.Workflow.Runtime.Hosting.DefaultWorkflowLoaderService.CreateInstance(XmlReader workflowDefinitionReader, XmlReader rulesReader)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(String xomlText, String rulesText, Byte[] xomlHashCode, Boolean createDefinition, Boolean initForRuntime)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.MruCache.GetOrGenerateDefinition(Type type, String xomlText, String rulesText, Byte[] md5Codes, Boolean initForRuntime, Boolean& exist)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(String xomlText, String rulesText, Boolean createNew, Boolean initForRuntime)

       at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)

       at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)

       at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)

       at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)

       at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary`2 namedArgumentValues, Guid instanceId)

       at Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManager.StartWorkflowInstance(Guid workflowInstanceIdentifier, KeyValuePair`2[] additionalParameters)

       --- End of inner exception stack trace ---

    ***

    Microsoft.ResourceManagement: Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManagerException: Unable to create new WorkflowInstance for WorkflowDefinition 'f64e8568-fb14-4153-ba6d-4facbba9aa03'. ---> System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation.

       at System.Workflow.Runtime.Hosting.DefaultWorkflowLoaderService.CreateInstance(XmlReader workflowDefinitionReader, XmlReader rulesReader)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(String xomlText, String rulesText, Byte[] xomlHashCode, Boolean createDefinition, Boolean initForRuntime)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.MruCache.GetOrGenerateDefinition(Type type, String xomlText, String rulesText, Byte[] md5Codes, Boolean initForRuntime, Boolean& exist)

       at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(String xomlText, String rulesText, Boolean createNew, Boolean initForRuntime)

       at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)

       at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)

       at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)

       at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)

       at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary`2 namedArgumentValues, Guid instanceId)

       at Microsoft.ResourceManagement.Workflow.Hosting.WorkflowManager.StartWorkflowInstance(Guid workflowInstanceIdentifier, KeyValuePair`2[] additionalParameters)

       --- End of inner exception stack trace ---

       at Microsoft.ResourceManagement.Utilities.ExceptionManager.ThrowException(Exception exception)

    Friday, August 17, 2012 7:36 AM

Answers

  • When you do an upgrade it automatic adds assembly binding information which won't be present on a fresh install.

    The easist way to get your workflow working is to update 'Microsoft.ResourceManagement,Service.exe.config' on the newly installed R2 with the same assembly binding info from the upgraded version. (It should be add the end of the file.) 

    Friday, August 17, 2012 9:54 AM