SharePoint 2013 Workflow deploying to Staging :Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activ ities}GetCurrentItemId'

Hi,

We have created SharePpoint 2013 Visual studio workflow in development its working fine. When i moved to staging server. Its not working. Its throwing below error. Help on this appreciated.

Application error when access /_layouts/15/ManageFeatures.aspx, Error=Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activities}GetCurrentItemId'. HTTP headers received from the server - ActivityId: c34f1447-8299-417e-9fed-3db069575cd7. NodeId: HFSP2013STG01. Scope: /SharePoint/default/fff19e1b-4a2b-42e5-a144-5341d052e82c/5c6c812e-59c7-439d-9d17-3fc9018dbfe1. Client ActivityId : f6206c9c-6e56-1004-2903-ca5b22924982. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.    

The above error occured while activating the workflow feature.

January 22nd, 2014 6:49am

Hi,

Can you please make sure workflow configured properly? If you develop a simple workflow with SharePoint designer - which may just write something in workflow history - see if it works. Most probably the server might need a restart (if you have configured but have not restarted)? Can you access the workflow endpoint? If you can at least narrow down the problem to - whether it's configuration or your workflow is the problem?

Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2014 11:18am

Hi Sohel,

Thanks for help.

We have restarted the server. We have tested with one designer workflow and one VS workflow with only WriteToHistory activity. It works. But When i deploy my actual solution to staging. It throw's cannot create unknown type GetCurrentItemId and activity not found. 

please let us know, how to check the workflow endpoint?

Thanks

January 22nd, 2014 9:51pm

Hi,

Just confirming, you have tested SharePoint 2013 workflow, not SharePoint 2010? Please check the link: http://technet.microsoft.com/en-us/library/jj658588.aspx#section6 to verify the workflow installation.

Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2014 4:48am

Hi Sohel,

We found the issue where exactly. As I said the workflow working in Dev and not in Staging, because in the workflow code it is referring to "Microsoft.SharePoint.DesignTime.Activities.dll" <u5:p></u5:p> and the physical path of this dll located in below path, where the Visual Studio related dll's are placing.
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PublicAssemblies\Microsoft.SharePoint.DesignTime.Activities.dl

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.

Thanks for your help !

Gopinath V

January 23rd, 2014 4:37pm

Dear Gopinath,

I am facing the same issue. even after copying the dll and placing in appbin. 

I am really stuck. Any help would be appreciated

Free Windows Admin Tool Kit Click here and download it now
February 28th, 2014 6:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics