-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hello,
There is a new content type from SharePoint on the site pages library
He needs to be excluded in the script : Misc\Move-List.ps1
Add here ->
$nodesToRemove = @( "0x0100415C46DF0F4B45939BDEC96C5014A10E", # Microblog Properties Content Type "0x0101009148F5A04DDD49CBA7127AADA5FB792B", # Rich Media Asset Content Type "0x0101009148F5A04DDD49CBA7127AADA5FB792B00291D173ECE694D56B19D111489C4369D" # Video Rendition Content Type "0x0101009D1CB255DA76424F860D91F20E6C41180043153F945E98468297E67C3EEE43AB70" # Space Content Type "0x0101009D1CB255DA76424F860D91F20E6C411800C57E7DC123744954AACC08D1D5260154" # Content Freshness )
Current error in the trace output : PowerShell.exe Information: 0 : 2025-01-27 16:42:11.9540 [Content Types] [10] [Debug] Updating existing Content Type: 0x0101009D1CB255DA76424F860D91F20E6C411800C57E7DC123744954AACC08D1D5260154 - Content Freshness 972ms 7ddeec4a-56e6-4555-bec3-f64d3d90825a
PowerShell.exe Information: 0 : 2025-01-27 16:42:11.9560 [Content Types] [10] [Debug] Adding field 46e6583c-87b2-4560-87e6-734a34780746 to content type 977ms 7ddeec4a-56e6-4555-bec3-f64d3d90825a
PowerShell.exe Error: 0 : 2025-01-27 16:42:12.0855 [OfficeDevPnP.Core] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: Invalid field name. {46e6583c-87b2-4560-87e6-734a34780746}
à Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
After adding the content type to the nodes to remove, it is working fine.
Thanks