Replies: 1 comment 3 replies
-
This is also happening when copying files in bulk using Copy-PnpFile command. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
Enterprise Keywords Set Via Set-PnPTaxonomyFieldValue Are Removed When Editing Other Properties
We have a document library with millions of documents. The properties are set via a Document based content type, one of the fields is Enterprise Keywords (renamed to Tags). I'd set enterprise keywords using Set-PnPTaxonomyFieldValue as there were so many documents which worked fine. But when another field of a document is edited the enterprise keyword automatically gets removed. It's intermittent. This does not happen when we set enterprise keywords manually.
Opened a premier support case with Microsoft and they suggested checking with the community as the issue is only happening on enterprise keywords that were set via PnP PowerShell:
"This has been extensively triaged and discussed internally with our escalation Team after which they have come up with the conclusion that since the issue only occurs when the item properties are changed using PnP PowerShell, this should be looked into by PnP Community support.
This issue is not reproducible when changing file properties through GUI which has been confirmed by the customer. Issue only extends to one site and is not reproducible on any other site on the tenant.
Since PnP isn't a product. Therefore, it is not supported by official support channels.
PnP is supported in similar ways as other open-source projects done by Microsoft with support from the community by the community.
"
Expected behavior
Enterprise keywords should stay intact when other properties are edited
Actual behavior
When we updated a document property which has enterprise keyword set via PnP PowerShell the keyword disappears

Here's a file with the enterprise keyword 'Audits':
When the Title property was manually edited (added a 9 in the end) in the details pane the keyword auto removed itself:

The same issue was reported here by someone with videos
Steps to reproduce behavior
Tag0.csv file's columns and data are in the following format:
Tag,FileRelativeURL
account,/sites/sitename/Clients/1-XYZ001/Account/Agreement.pdf
Group_Details,/sites/sitename/Clients/1-ABC002/Account/LegalDocs/Group_Details/2004_RATE.doc
What is the version of the Cmdlet module you are running?
ModuleType Version PreRelease Name PSEdition ExportedCommands
Manifest 2.1.1 PnP.PowerShell Desk {Add-PnPAdaptiveScopeProperty, Add-PnPP…
Manifest 1.12.0 PnP.PowerShell Core,Desk {Add-PnPAdaptiveScopeProperty, Add-PnPP…
Manifest 1.11.0 PnP.PowerShell Core,Desk {Add-PnPAdaptiveScopeProperty, Add-PnPP…
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions