pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
211 stars 144 forks source link

Invoke-PnPSiteTemplate - A duplicate content type "Item" was found. #661

Open henriquesmoco opened 2 years ago

henriquesmoco commented 2 years ago

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

PS C:\tmp> Invoke-PnPSiteTemplate -Path myList.xml
Invoke-PnPSiteTemplate : A duplicate content type "Item" was found.
At line:1 char:1
+ Invoke-PnPSiteTemplate -Path dev2.xml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Invoke-PnPSiteTemplate], ServerException
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate
tristian2 commented 2 years ago

i'm interested in this post thanks