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
204 stars 141 forks source link

Using Invoke-PnPSiteTemplate breaks Document Set Shared Columns #948

Open diver7 opened 9 months ago

diver7 commented 9 months ago

I have a template site that I use that contains custom content types that are Document Sets. These Document Sets are configured with Shared Columns that should propagate to all files uploaded in the Document Set. When I apply the site template to a new site the content types are created but the shared columns do not work. They do not get populated when I upload a file.

It also breaks shared columns for all Document Set content types on that new site. After creating the site and applying the site template, I created a new document set content type and added some shared columns. They did not get populated either.

I verified on all document set content types that the settings were correct after applying the site template. So it appears that using Invoke-PnPSiteTemplate on a site breaks the Shared Column functionality for the entire site. I have tried with PnP.Powershell version 1.12.0. and 2.1.1

I am running out of ideas on this one. Could someone please look into this. Thanks.

J3D1m0 commented 7 months ago

@diver7 "I'm not sure if you have the same issue as the cause, but I was indeed able to fix the problem on my end. If you deploy the template to a SharePoint Online site, you must remove the PropertyBagEntries from the XML in the list instance with the document set. Ever since I deleted these, the document sets correctly inherit the values into the documents contained within them."

My only issue now ist, how can i fixe allready deployt libraries :)

To Delete: