powershell
powershell copied to clipboard
[BUG]
Context
As there is no option to set a default column value for a person field in SharePoint we're using PnP Powershell to perform this action. We have users following a procedure on a weekly basis to add a default column value to a person field on a folder. In short the procedure is as follows:
- Get the ID of the list
- Get the folder name in that list
- Clear the default column value of the person field on that folder
- Set a new default column value for this person field on that specific folder
Expected behavior
Normally this works as expected and the user is set as value in the person field.
Actual behavior
In a document library containing multiple folders (Just as all the other ones we have) we now receive the error "Error applying default column values" when using the cmdlet "Clear-PnpDefaultColumnValues
Steps to reproduce behavior
See image ->
What is the version of the Cmdlet module you are running?
Version 2.10.0 that was last updated 2 months ago. https://www.powershellgallery.com/packages/PnP.PowerShell/2.10.0
Which operating system/environment are you running PnP PowerShell on?
- Windows