Sharepoint 2013 The total size of the activity XAML is greater than the maximum allowed size of 51200 KB

Sharepoint 2013 activity XAML

The Default Size of the SharePoint 2013 workflow is 5 MB which is quite enough until you are writing very complex or multi-level approval workflow.

The total size of the activity XAML is greater than the maximum allowed size of 51200 KB
The total size of the activity XAML is greater than the maximum allowed size of 51200 KB

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:



The total size of the activity XAML including the referenced XAML is greater than the maximum allowed size of 51200 KB.

Solutions:
– Open Microsoft SQL Management which is belongs to SharePoint

– Open the database and choose WFResourceManagementDB table dbo.WorkflowServiceConfig

Sharepoint 2013 activity XAML 1
Sharepoint 2013 activity XAML 1

– Push the right button and choose «Edit Top 200 Roww

– Change the setting WorkflowServiceMaxWorkflowXamlSizeInBytes to 104857600

Sharepoint 2013 activity XAML 2
Sharepoint 2013 activity XAML 2

Make a restart in IIS WorkflowMgmtPool and Workflow Management Site.


Read some Windows tutorials:

Hope this will help someone.


You May Also like the Following SharePoint Online Tutorials:

Leave a Reply