SOLVED

Add-PnPDocumentSet creates a regular folder, but no document set?

Copper Contributor

Hey there

I'm new with pnp and I'm quite inexperienced, but I'd like to add a new document set in a library with the following pnp command.

I can see that the content-type I define (in this example "Test Document Set") is being created - which is a document set. However, it is only creating a normal folder - not a document set.

 

Add-PnPDocumentSet -List "Documents" -ContentType "Test Document Set" -Name "Test"

 

Any ideas why?

2 Replies
best response confirmed by Fabian Ackeret (Copper Contributor)
Solution

This is a known issue related to Modern View, see the issue in PnP-PowerShell GitHub repository:

https://github.com/SharePoint/PnP-PowerShell/issues/644

 

 

Oh, thanks so so much for the update!

1 best response

Accepted Solutions
best response confirmed by Fabian Ackeret (Copper Contributor)
Solution

This is a known issue related to Modern View, see the issue in PnP-PowerShell GitHub repository:

https://github.com/SharePoint/PnP-PowerShell/issues/644

 

 

View solution in original post