I get the error below when running the Invoke-PnPSiteTemplate with "Allow management of content types?" enabled on the source list.
The source list might have been created importing an Excel (not sure if it makes any difference).
All fields/views are the same in both lists. The only difference between the XML that throw the error and the one that don't is that the bad one has ContentTypesEnabled="true" set on pnp:ListInstance tag.
When disabling the "Allow management of content types?" on source lists before generating the XML it works.
It doesn't matter if "Allow management of content types?" is true or false on the destination list.
Category
[ x ] Bug [ ] Enhancement
Environment
[ x ] SharePoint Online
Description
I get the error below when running the Invoke-PnPSiteTemplate with "Allow management of content types?" enabled on the source list.
Error