Apr 03 2019 02:02 AM
Hi all,
I just discovered something that might be a bug.
I have a document library with some custom columns. One column is of type Managed Metadata, and set to be Required. Column name is External Company.
After uploading the document, I open the Details pane, and enter a valid label into External Company. Then change focus to another column, and can verify that the new value is saved.
However, if I do the same using the "Edit all" option, I get an error message saying "You can't leave this blank" when hitting the Save button. See screenshot below:
I can confirm that the value in the screenshot above is indeed a valid term in the Term Store, and that this error applies to other terms from the Term Store as well.
Has anyone else experienced this?
Thanks for any input or insight!
Kind Regards,
Frank
Jan 19 2022 03:31 PM - edited Jan 19 2022 03:35 PM
We did get a solution from Microsoft that worked, mostly. The fix is a change to a library property using PowerShell. Then updating the metadata by editing the SharePoint online library metadata column works. But editing the data in desktop client properties panel (on the ribbon, File, Info to see the properties panel) does not. The PnP PowerShell example Microsoft supplied is:
Disable the document parser in the SharePoint online library:
• Save below script to your local drive as DisableLibraryParser.ps1,
Param([parameter(Mandatory=$true,
HelpMessage="URL of SharePoint online site")]
$siteUrl,
[parameter(Mandatory=$true,
HelpMessage="Title of the affected library")]
$libraryTitle
)
Connect-PnPOnline -Url $siteUrl -UseWebLogin
$clientContext = Get-PnPContext
$library = $clientContext.Site.RootWeb.Lists.GetByTitle($libraryTitle)
$library.ParserDisabled = $true
$library.Update()
$clientContext.ExecuteQuery()
Write-Host "Done" -ForegroundColor Green
• Open PowerShell Window as administrator, run the below command for install the SharePoint online PNP module,
Install-Module -Name "PnP.PowerShell"
• Run below command for allowing your computer to run PowerShell script,
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
• Use the CD command for navigating the folder which stored the DisableLibraryParser.ps1
• Run the script as below (please replace the site URL and library title accordingly),
.\DisableLibraryParser.ps1 -siteUrl https://[company].sharepoint.com/sites/[site] -libraryTitle "[Library Title]"
Jan 19 2022 03:48 PM - edited Jan 19 2022 03:49 PM
Thank you, I understand what u posted, but I cannot judge impact of disabling the document parser. Will properties still end up in documents?
Jan 19 2022 04:13 PM