Tuesday 15 October 2024

SharePoint 2013 Tutorial: Invoke-SPOSiteDesign Not Working

Leave a Comment

Invoke-SPOSiteDesign will apply the site designs and related site scripts to the current SharePoint online modern sites, per MSFT documentation. Consider a scenario where you need to create custom solutions, libraries, and lists for a specific business use case. Instead of going through the same process over and over again, you could create a site design that could be saved and then applied to new or existing SharePoint online modern sites. See the references section for additional information about the site designs and site scripts.


I want to talk about the Invoke-SPOSiteDesign action's limitations in this blog article. A SharePoint Online PowerShell module function called Invoke-SPOSiteDesign will apply pre-existing Site Design to SharePoint online sites. Although no errors are raised when executing this command, the Site Design is not being implemented. The command that was used in my scenario is shown below.

# replace the Identity and WebUrl that are associated with your parameters.

Invoke-SPOSiteDesign -Identity “gerwtyru-g9cy-12we-123edefrty” -WebUrl “https://tailspin.sharepoint.com/sites/mycsutomsite”

Reason

Invoke-SPOSiteDesign has a limitation: it can only run up to 30 actions. In my case, I have more than 30 actions which is why the Invoke-SPOSiteDesign is not working.

Alternatives

The alternative action that can be used in this case is to use Add-SPOSiteDesignTask. This action will schedule the site design task to run in the next couple of minutes. Most probably within 5 minutes, the actions are applied, and the site design is reflected in respective SharePoint online modern sites. Replace the parameters -SiteDesignId and -WebUrl with respect to your scenario. 

Add-SPOSiteDesignTask -SiteDesignId "gerwtyru-g9cy-12we-9aa3-123edefrty" -WebUrl "
https://hostforlife.sharepoint.com/teams/CustomTemplateDemo"

If you are using the PnP PowerShell module, then use the command Add-PnPSiteDesignTask.

Add-PnPSiteDesignTask -SiteDesignId "gerwtyru-g9cy-12we-9aa3-123edefrty" -WebUrl "
https://hostforlife.sharepoint.com/teams/CustomTemplateDemo"

Note. For PnP modules, you need to save the current connection to the site in a variable and use that as a connection parameter. For more information on how to connect to the SPO site using PnP Modules, please visit the references section.

Best SharePoint Hosting Recommendation
One of the most important things when choosing a good SharePoint hosting is the feature and reliability. HostForLIFE is the leading provider of Windows hosting and affordable SharePoint, their servers are optimized for PHP web applications such as the latest SharePoint version. The performance and the uptime of the hosting service are excellent and the features of the web hosting plan are even greater than what many hosting providers ask you to pay for. 

At HostForLIFE.eu, customers can also experience fast SharePoint hosting. The company invested a lot of money to ensure the best and fastest performance of the datacenters, servers, network and other facilities. Its datacenters are equipped with the top equipments like cooling system, fire detection, high speed Internet connection, and so on. That is why HostForLIFE.eu guarantees 99.9% uptime for SharePoint. And the engineers do regular maintenance and monitoring works to assure its SharePoint hosting are security and always up. 

http://hostforlifeasp.net

0 comments:

Post a Comment