Skip to content

Set-PnPDefaultColumnValues with "-Folder" not working #178

@TimTimBS

Description

@TimTimBS

Hi,

I'm trying to use the Set-PnPDefaultColumnValues command to set a default value for a managed metadata column on multiple folders.

For some reason this command doesn't work for me at all. I've read that the command has a bug if the folder hast special characters. So I created a new folder named "Test" and even renamed my productionfolder.
For testing purposes I've also just tried to set an single line of text default value.

It just doesn't work

I always get the "Set-PnPDefaultColumnValues : Error applying default column values" Error
image

I already tried different combinations:
Set-PnPDefaultColumnValues -List Dokumente -Field Status_x0020_Unterschrift -Folder "/Test" -Value "Test"
Set-PnPDefaultColumnValues -List Dokumente -Field Status_x0020_Unterschrift -Folder "Test" -Value "Test"
Set-PnPDefaultColumnValues -List "Freigegebene Dokumente" -Field Status_x0020_Unterschrift -Folder "/Test" -Value "Test"

Here are the some values I've set manually to see what I should use as the folder and field param:

image

I'm working on the PnP.PowerShell Version 1.2.0.

Has this command still the same bug it has back in 2016/2017?

Thanks for your feedback 🛸🏴‍☠️

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions