PNP Document Library provisioning – “Failed! Specified method is not supported”


Please note: This appears to be fixed in the latest version of PNP 3.6.1902.2.

I’m using PNP templates to create lists on my client site. These templates haven’t changed in months, but suddenly yesterday these templates kept failing with the error message “Specified method is not supported.”

<pnp:ListInstance Title="Templates" Description="" DocumentTemplate="{site}/Templates/Forms/template.dotx" TemplateType="101" Url="Templates" EnableVersioning="true" EnableMinorVersions="true" MinorVersionLimit="0" MaxVersionLimit="0" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-e717-4e80-aa17-d0c71b360101" EnableAttachments="false" ForceCheckout="false">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBindingContentTypeID="0x0101" Default="true"/>
<pnp:ContentTypeBindingContentTypeID="0x0120"/>
</pnp:ContentTypeBindings>
<pnp:Views>
<ViewName="{guid}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Documents" Url="{site}/Templates/Forms/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=44">
<Query>
<OrderBy>
<FieldRefName="FileLeafRef"/>
</OrderBy>
</Query>
<ViewFields>
<FieldRefName="DocIcon"/>
<FieldRefName="LinkFilename"/>
<FieldRefName="Modified"/>
<FieldRefName="Editor"/>
<FieldRefName="_UIVersionString"/>
</ViewFields>
<RowLimitPaged="TRUE">30</RowLimit>
<JSLink>clienttemplates.js</JSLink>
</View>
</pnp:Views>
</pnp:ListInstance>

It turns out the problem was that I was setting the MinorVersionLimit and MaxVersionLimit to 0.

When set to 0, it allowed there to be no limit.

It seems that Microsoft has removed the ability to set this to 0. When trying to set the value through the browser I get a message saying the value needs to be between 1 – 50000.

If I change my template to set MinorVersionLimit and MaxVersionLimit to 50000 it works without any issues.


<pnp:ListInstance Title="Templates" Description="" DocumentTemplate="{site}/Templates/Forms/template.dotx" TemplateType="101" Url="Templates" EnableVersioning="true" EnableMinorVersions="true" MinorVersionLimit="50000" MaxVersionLimit="50000" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-e717-4e80-aa17-d0c71b360101" EnableAttachments="false" ForceCheckout="false">

I’m not sure if this is all related to Microsoft announcement MC138148 that stated that versioning would change, so that it would be on by default for all document libraries and users wouldn’t be able to turn it off. It did state that if you were OK with this change, then there is nothing you need to do, and that the roll out would happen on the 30th September 2018. It’s not quite that date yet, but I’m wondering if that’s the complete date for all tenants that Microsoft puts.