Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] Updating Content Type "Content Freshness" #81

Open
Arthis71 opened this issue Jan 27, 2025 · 1 comment
Open

[Error] Updating Content Type "Content Freshness" #81

Arthis71 opened this issue Jan 27, 2025 · 1 comment

Comments

@Arthis71
Copy link

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

@Arthis71 Arthis71 changed the title Error Updating Content Type "Content Freshness" [Error] Updating Content Type "Content Freshness" Jan 27, 2025
@Zerg00s
Copy link
Owner

Zerg00s commented Jan 30, 2025

Hi @Arthis71 . Thank you very much!

I will try to find some time to update the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants