Forum Discussion
Site Script Action Limit
Laura Kokkarinen talks about this in her blog post on Site Designs and Site Scripts. Are you on a first release tenant?
https://laurakokkarinen.com/the-ultimate-guide-to-sharepoint-site-designs-and-site-scripts/#large-site-designs
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 script1.id,script2.id,script3.id,script4.id `
-Description "Tracks key customer data in a list" `
-PreviewImageUrl "https://contoso.sharepoint.com/SiteAssets/site-preview.png" `
-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
Thanks