Jan 27, 2014

SharePoint Designer 2013 Workflow error :Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Activity 'someXActivity' has 58 arguments, which exceeds the maximum number of arguments per activity (50).


Hi Guys,

Recently I got this workflow error while working with the SharePoint designer workflows in 2013. The error is about the creation of workflow variables/arguments more than 50 in number. By default max variables/arguments allowed in workflow is 50. If we create more than this, we encounter with the following error while publishing the workflow.

“Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Activity “SomeXActivity” has 58 arguments, which exceeds the maximum number of arguments per activity (50).

The resolution is like this:

Change the default settings of the workflow variable limit in the Workflow Manager table as follows.
Go to SQL where your Workflow Manager Db is stored and set these.

DataBase : WFResourceManagementDB
Table : WorkflowServiceConfig
Rows :  
WorkflowServiceMaxVariablesPerActivity  :   set it to required value and  WorkflowServiceMaxArgumentsPerActivity  : set it to required value.
 
like this
 
Thanks