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/
Hi Friend,
ReplyDeleteIt is not advisable to alter SQL table directly
Hi
DeleteDo you mean need to use query to update?
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/
ReplyDeleteThank you, updated the post accordingly.
Delete