SharePoint 2013 Workflow Manager possible issues and fixes


Unable to properly communicate workflow service.

Resolution :

Re-installed workflow manager by removing FQDN(servername.domainname) with Service Bus 1.0 cumulative update 1. Do not use FQDN (fully qualified domain name).

Ex: à SP2013DEV01SP2013DEV01


For Install and Uninstall Workflow Manager

2.Error :

Create designer WF for testing. When you trying to publishing the designer WF. It will throw below error.

Microsoft.Workflow.Client.InvalidRequestException: Scope ‘/SharePoint/default/fff19e1b-4a2b-42e5-a144-5341d052e82c/5c6c812e-59c7-439d-9d17-3fc9018dbfe1’ is not in an updatable state. Its current state is ‘Unregistered’. HTTP headers received from the server – ActivityId: d6ff3074-0680-4c56-b955-5d90ff33e6a9. NodeId: HFSP2013STG01. Scope: /SharePoint/default/fff19e1b-4a2b-42e5-a144-5341d052e82c/5c6c812e-59c7-439d-9d17-3fc9018dbfe1. Client ActivityId : 4c846a9c-ee4b-1004-2903-c9769a91c67b. –

Resolution :

Register-SPWorkflowService -SPSite “http:// SP2013DEV01/” -WorkflowHostUri “http:// SP2013DEV01/:12291/” -Force -ScopeName “SharePoint”

3.Error :

Go to workflow instance of that record and under the Running Workflows section. Click on your workflow name. You can see the “Workflow getting Suspended (Click on “i”  information icon)”

Resolution :

Register-SPWorkflowService -SPSite “http:// SP2013DEV01/” -WorkflowHostUri “http:// SP2013DEV01/:12291/” – AllowOAuthHttp -Force -ScopeName “SharePoint”

4.Error :

Go to workflow instance of that record and under the Running Workflows section. Click on your workflow name. You can see the “Workflow getting Automatically Cancelled. (Click on “i”  information icon)”

Exception details: System.ApplicationException: HTTP 401 {“x-ms-diagnostics”:[“3000006;reason=”Token contains invalid signature.”;category=”invalid_client””],”SPRequestGuid”:[“f880abe6-d546-7d6b-a43a-37ab0346cde5″],”request-id”:[“f880abe6-d546-7d6b-a43a-37ab0346cde5″],”X-FRAME-OPTIONS”:

Resolution :
Refresh “Trusted Security Token Services Metadata feed” Timer job.

5.Error : 

The Workflow absolutely working fine in development server and when we deploying the solution and activating the feature. It’s throwing below error.

System.InvalidOperationException: Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot create unknown type ‘{wf://$Activities}GetCurrentItemId’.

Root Cause Analysis:

In the workflow visual studio automatically referring the below DLL. This DLL will place automatically when you installed VS2012. Since we do not have Visual Studio in Staging its keep throwing the above error (which mentioned).

reference properties

reference properties

“Microsoft.SharePoint.DesignTime.Activities.dll”  and the physical path of this dll located in below path, where the Visual Studio related dll’s are placing and when installed Visual Studio.
C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDEPublicAssembliesMicrosoft.SharePoint.DesignTime.Activities.dl

Solution :

Now, we have fixed this issue keeping above dll into inetpub/_app_bin folder and referring this in Workflow project. Then the same thing we are doing in Staging also. Then the workflow started working.

Categories: Uncategorized

Tags: ,