Site Script Action Limit

Copper Contributor

Microsoft's documentation states:

We'd previously capped the limit of site script actions to 30. This remains the limit for scripts applied synchronously using the Invoke-SPOSiteDesign command, but based on customer feedback and support for additional actions we have bumped this limit to 300 actions (or 100,000 characters) when the scripts are applied asynchronously (either through the UI or using the Add-SPOSiteDesignTask command).


I created a script that has more than 30 actions, and indeed the Invoke-SPOSiteDesign command does not work; however, the Add-SPOSiteDesignTask does work.  I assume that ..."through the UI" in the statement above refers to creating a site using the Create Site button in SharePoint.  When I use the Create Site button with my design that contains the +30 action script.  It does not work.  I just get the message that it is Initializing, but nothing ever happens.  If I cancel out of the operation and then use the PowerShell Add-SPOSiteDesignTask command, the design is applied as expected.


What does Microsoft mean by "...through the UI"?

2 Replies



@Laura Kokkarinen talks about this in her blog post on Site Designs and Site Scripts. Are you on a first release tenant?

@Thomas Berman @Laura Kokkarinen @Gary_Stewart 


We have large site with more than 30 list and library. So we have split into 4 site scripts due to limit of 100000 characters. After we have added 4 site scripts into site using below code

Add-SPOSiteDesign `
-Title "My customer tracking" `
-WebTemplate "64" `
-SiteScripts,,, `
-Description "Tracks key customer data in a list" `
-PreviewImageUrl "" `
-PreviewImageAltText "site preview"


After when we try to apply Add-SPOSiteDesignTask throwing below error 


"Operation is not valid due to the current state of the object"  any idea? how to resolve or root cause