سؤال

When attempting to edit any Content Query Web Part on any page within one particular site collection (by clicking "Edit Web Part"), SharePoint displays a generic "An unexpected error has occurred" message. When tracing the issue, the logs have the following runtime error:

System.ArgumentException: Invalid field name.
{94f89715-e097-4e8b-ba79-ea02aa8b7adb} http://intranet     

at Microsoft.SharePoint.SPFieldCollection.GetFieldById(Guid fieldId,
Boolean bThrowException)      at
Microsoft.SharePoint.SPFieldCollection.get_Item(Guid id)      at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.PopulateFieldsFromWeb(SPWeb web)      at
Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.populateData()
at
Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.populateCBQControls()
at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryToolPart.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Control.PreRenderRecursiveInternal()      at
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I've tried searching for the Invalid Field ID by GUID using PowerShell, but the field doesn't exist by that GUID (as far as I can tell).

The only change that the site collection administrator claims to have performed was changing the site collection into a "Content Type Hub" - could this potentially have caused the issues described? If so, is there a solution to fix it?

Thanks in advance for any assistance!

EDIT: I've noticed that I cannot see the standard out-of-the-box content types in the site settings (custom types are still there). Could this potentially be causing the issue?

هل كانت مفيدة؟

المحلول

That GUID corresponds to "URL Path (FileRef)" field that is somehow missing, or incorrectly referenced in webpart.

If you export the CQWP and look at the .webpart XML, does it contain that field in QueryOverride, or in some other properties? If yes, see is it really needed and remove and reupload webpart.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top