pnp / PnP

SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
https://aka.ms/m365pnp
Other
1.89k stars 3.31k forks source link

Apply-PnPProvisioningTemplate : A list, survey, discussion board, or document library with the specified title already exists in this Web site. #1921

Open ezjurgen opened 3 years ago

ezjurgen commented 3 years ago

Category

[X] Bug [ ] Enhancement

Environment

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

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

When creating template of a customised Modern Team Site Collection, that those alterations would be merged with a new Site Collection you are applying the template to.

Observed Behavior

when applying a template of a source site with customisations on default site elements to a new fresh site collection I get: Apply-PnPProvisioningTemplate : A list, survey, discussion board, or document library with the specified title already exists in this Web site. Please choose another title. At line:46 char:1

Steps to Reproduce

On your Source Modern Teams Site collection, create an extra Column in the default Documents library. Create a view using that new column as a filter Create a Site template of that site (XML or PNP, same result here) Create a new modern team site collection then use Apply-PnpProvisioningTemplate to apply the template this error will fire and opening the new site collection you will see it applied everything unitl the documents library, everything else like other lists or doc libs will not be provisoned

thanks!