{"id":2658,"date":"2013-07-12T07:00:39","date_gmt":"2013-07-12T07:00:39","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=2658"},"modified":"2023-01-09T02:30:08","modified_gmt":"2023-01-09T02:30:08","slug":"a-workflowservicehost-instance-for-workflowdefinitionversionkey-has-faulted","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/a-workflowservicehost-instance-for-workflowdefinitionversionkey-has-faulted","title":{"rendered":"A WorkflowServiceHost instance for WorkflowDefinitionVersionKey &#8216;<num>&#8216; has faulted."},"content":{"rendered":"<p>Obscure error message of the day: A few workflows were failing in the Test environment and this event appeared in the FIM log.<\/p>\n<p>There may be many reasons for this error, it&#8217;s a pretty general one, but in my case it&#8217;s because I generated these workflow from template XOML copied from another workflow &#8211; but I messed up along the way and ended up with two &#8220;authenticationGateActivity2&#8221; lines in my XOML. I changed one &#8220;2&#8221; to another un-used number and the workflow now works correctly.<!--more--><\/p>\n<p>For reference &#8211; the event in the subject line of this post was followed up with:<\/p>\n<blockquote><p>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\u00a0 at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)<\/p>\n<p>at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.CloseServiceHosts(IList`1 workflowServiceHosts)<\/p>\n<p>at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.ActivateHost(ResourceManagementWorkflowDefinition workflowDefinition, Boolean suspendWorkflowStartupAndTimerOperations)<\/p>\n<p>at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.RetrieveWorkflowDataForHostActivator()<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s a pretty general one, but in my case it&#8217;s because I generated these workflow from template XOML copied from another workflow &#8211; but&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[60,64,45],"tags":[],"class_list":["post-2658","post","type-post","status-publish","format-standard","hentry","category-fim-2010-r2","category-troubleshooting","category-workflow"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-GS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=2658"}],"version-history":[{"count":6,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2658\/revisions"}],"predecessor-version":[{"id":3317,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2658\/revisions\/3317"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=2658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=2658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=2658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}