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

Sharepoint 2013 activity XAML

This SharePoint workflow tutorial explains, how to solve error The total size of the activity XAML is greater than the maximum allowed size of 51200 KB. The error also comes as Errors were found when compiling the workflow, The workflow files were saved but cannot be run.


New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

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: The total size of the activity XAML including the referenced XAML is greater than the maximum allowed size of 51200 KB.

– 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 SharePoint workflow tutorial helps to resolve issue The total size of the activity XAML is greater than the maximum allowed size of 51200 KB. The error also comes as Errors were found when compiling the workflow, The workflow files were saved but cannot be run.

Check out Best Alternative to InfoPath -> Try Now

FREE SHAREPOINT 2019 PDF

(Installation & Features)