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

3 comments:

  1. Hi Friend,

    It is not advisable to alter SQL table directly

    ReplyDelete
    Replies
    1. Hi

      Do you mean need to use query to update?

      Delete
  2. The first commenter has definitely right. I don't think either, that setting values directly in the database would be a good idea, it is not supported too, as far as I know. Instead, I suggest to use the Set-WFServiceConfiguration PowerShell cmdlet as described here: https://blogs.msdn.microsoft.com/feseca/2015/02/27/error-publishing-a-sharepoint-workflow-into-workflow-manager-exceeds-the-maximum-number-of-arguments/

    ReplyDelete