How to disable automatic document property promotion in SharePoint on-premise?

SharePoint uses so called document parsers in order to automatically promote and demote properties between columns of the document's content type and the document's properties (for more details see https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543341(v=office.14)).

During a content migration, this might have a negative side effect: migration-center cannot verify the content integrity based on a MD5 checksum, because the content of a file gets changed automatically by the property demotion process.

To work around this problem, you can disable the property promotion / demotion process for the duration of the migration using the following PowerShell commands:

Add-PSSnapin Microsoft.SharePoint.PowerShell
$web = Get-SPWeb "http://mypc/sites/MySP2016SiteCollection/"
$web.ParserEnabled = $false
$web.Update()
$web.Dispose()

To enable the process again, use:

Add-PSSnapin Microsoft.SharePoint.PowerShell
$web = Get-SPWeb "http://mypc/sites/MySP2016SiteCollection/"
$web.ParserEnabled = $true
$web.Update()
$web.Dispose()

For more details, see https://www.sharepointsky.com/sharepoint-document-property-promotion/

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.