In Blogs, Mavention Make, Techblog

When creating your umpteenth site using Mavention Make, you have probably seen that a correct template suddenly gives an error. You know that this template should work because it did provision correctly a several times before. After using the retry button, the template provisions the site as if nothing had happened before.

What just happend? There could be several reasons why the provisioning stops. One thing could be that SharePoint Online is throttling your requests. This happens when Microsoft detects a extensive usage, but in this case Mavention Make has build-in functionality to handle throttling. The more common reason why the provisioning did not complete, is probably that a specific service did not responded like it supposed to in a longer period of time. When this happens the provisioning of the templates stops and you can find the reason in the error log of the provisioning request. To handle this kind of situations you could build a Microsoft Flow to retry the template on a error. But you could also use the retry option for in the playlist. Using this you can specify the number retries Mavention Make playlist should make before it stops. There is also a retry delay option, where you can set the time between the retries.

The retry option should be defined for a playlist in a template like:
<Playlist RetryCount="2" RetryDelay="30000">...</Playlist>

Now when the provisioning throws any error, Mavention Make will automatically retry the template for the defined times.
In case of provisioning still fails, I always create an notification for me and the requestor that it takes a little bit longer than supposed to.

Full example of the template

playlist.xml

<?xml version="1.0" encoding="utf-8" ?>
<Configurator xmlns="http://schemas.mavention.com/SharePoint/Apps/SiteConfigurator">
<Providers>
<Provider NodeName="Playlist" Class="Mavention.SharePoint.SiteConfigurator.Providers.PlaylistProvider" Assembly="Mavention.SharePoint.SiteConfigurator"/>
</Providers>
<Playlist RetryCount="2" RetryDelay="30000">
<Files>
<ConfigurationFile FileName="make-configuration-main.xml" FileType="Make" Requeueable="True" />
</Files>
</Playlist>
</Configurator>

make-configuration-main.xml

<?xml version="1.0" encoding="UTF-8"?>
<Configurator
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.mavention.com/SharePoint/Apps/SiteConfigurator">
<Providers>
<Provider NodeName="Site" Class="Mavention.SharePoint.SiteConfigurator.Providers.SiteProvider" Assembly="Mavention.SharePoint.SiteConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a43c589e76ba4e3d"/>
</Providers>
<Site Title="{Title}" Url="{url}" Template="STS#0" LCID="1033" OwnerLogin="{owner}" ObjectAction="Update" SharingCapability="ExternalUserSharingOnly" DenyAddAndCustomizePages="Disabled">
<RootWeb Url="" Title="{Title}" Template="STS#0" LCID="1033">
<Properties>
<Property Name="WebTemplate">ProjectSite</Property>
<Property Name="WebTemplateVersion">1.0.0.0</Property>
</Properties>
<Lists>
<List Url="external-documents" Title="External documents" TemplateType="101" TemplateFeatureId="00bfea71-e717-4e80-aa17-d0c71b360101" />
</Lists>
</RootWeb>
</Site>
</Configurator>

Vul je zoekopdracht in.

Tijmen Bak -Mavention