Invoke-PnPSiteTemplate: Index was outside the bounds of the array.

Copper Contributor

Dear,

 

I try to apply a template on a library and I have this error : Index was outside the bounds of the array.

 

The template don't work when I want to add a default column value.

 

I use Pnp Powershell 2.2.0.

I use a schema template : PnP/2022/09.

 

This is a part of the code I use to add a default column value.

 

This code without DefaultColumnValues works :

 

<pnp:Folders>
<pnp:Folder Name="INVITATION">
</pnp:Folder>
</pnp:Folders>

 

and this code does not work :

 

<pnp:Folders>
<pnp:Folder Name="INVITATION">
<pnp:DefaultColumnValues>
<pnp:DefaultColumnValue Key="MEETINGSDocumentType" Value="2b940daa-84ad-45cc-affe-f7b17cda1fff" />
</pnp:DefaultColumnValues>
</pnp:Folder>
</pnp:Folders>

 

This code used to work with the module SharePointPnPPowerShellOnline\3.12.1908.1.

 

Thanks for your help,

 

Regards,

 

Jean-Pierre

 

 

0 Replies