Applying site designs failing to apply the site design to SharePoint

Applying site designs failing to apply the site design to SharePoint Microsoft Office 365, Microsoft SharePoint, Microsoft SharePoint Online image 1

Today I tried to apply a site design to a SharePoint site using Power Automate, however this would just not work without any failure being reported.

ApplySiteDesign

Table of Contents

This is going to be a quick post. But hopefully this will help someone else spend too much time on this issue.

Normally the ApplySiteDesign endpoint will apply a site design to a SharePoint site however I found that when you have larger site scripts assigned to your site design then this might just silently fail. The limit is 30 actions in your site script, so this must be quite an easy problem to find.

So how do we make this work? Site Designs easily go past that 30 actions limit.

Interested in more SharePoint week content? Then you’re in luck! Find Out More.

Site Design tasks

The answer is luckily very simple.

We just need to create a Site Design Task. This task will then be processed. There is a specific endpoint for creating site design tasks, AddSiteDesignTaskToCurrentWeb. This end point will create a task and then update your sites quite quickly. In my case within minutes my sites were updated.

AddSiteDesignTaskToCurrentWeb example

About the Author

My name is Pieter Veenstra and I’ve been writing blog posts on SharePains for over 13 years now. It all started with posts about Microsoft SharePoint and over time I started to cover more and more Microsoft technology.

Reference

Veenstra, P., 2023, Applying site designs failing to apply the site design to SharePoint, Sharepains.com, Available at: https://sharepains.com/2023/02/01/site-designs-failing-sharepoint/ [Accessed on 5 May 2023]

Share this on...

Rate this Post:

Share: