pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 644 forks source link

Apply-PnPProvisioningTemplate : A duplicate content type "Item" was found. #1675

Open JohnnyKapps opened 6 years ago

JohnnyKapps commented 6 years ago

Category

[ x ] Bug [ ] Enhancement

Environment

[ x ] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

The error "Apply-PnPProvisioningTemplate : A duplicate content type "Item" was found." is ocurring when try to apply a provisioning template extracted from a Web of same tenant.

I have a site collection called "Site A" with some site collumns, content types, page layouts and other client site assets. I have extracted a Provisioning Template with "Get-PnPProvisioningTemplate" of "Site A", then I created another site collection, called "Site B" and then tried to Apply this Provisioning template, but the error occurs:

Apply-PnPProvisioningTemplate : A duplicate content type "Item" was found. No linha:1 caractere:1

markcunninghamuk commented 6 years ago

Have you checked the content types does not already exist? Or are you using a GUID that is already used by another content type?

JohnnyKapps commented 6 years ago

@markcunninghamuk I checked everything, and generated a new GUID for all the fields (using a VSCode extension) and the problem persists...