Hi
Guys,
[Update: You can achieve this solution using powershell as well, please refer the link provided at bottom of this post]
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.
UPDATE :
You can also set these configurations using power shell Set-WFServiceConfiguration command, please refer below msdn link for more details :
https://blogs.msdn.microsoft.com/feseca/2015/02/27/error-publishing-a-sharepoint-workflow-into-workflow-manager-exceeds-the-maximum-number-of-arguments/