Obscure error message of the day: A few workflows were failing in the Test environment and this event appeared in the FIM log.
There may be many reasons for this error, it’s a pretty general one, but in my case it’s because I generated these workflow from template XOML copied from another workflow – but I messed up along the way and ended up with two “authenticationGateActivity2” lines in my XOML. I changed one “2” to another un-used number and the workflow now works correctly.
For reference – the event in the subject line of this post was followed up with:
Workflow host activation failed for workflow definition id : 42303057-62d1-4d8f-b22d-c0dcb8b264ae, version key: 371. Exception: The communication object, Microsoft.ResourceManagement.Workflow.Hosting.ResourceManagementWorkflowServiceHost, cannot be used for communication because it is in the Faulted state at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.CloseServiceHosts(IList`1 workflowServiceHosts)
at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.ActivateHost(ResourceManagementWorkflowDefinition workflowDefinition, Boolean suspendWorkflowStartupAndTimerOperations)