Home > PowerShell, SharePoint 2010 > How To Fix: System.ArgumentException: Invalid Field Name {GUID} When Trying To Access a SharePoint 2010 List/Document Library

How To Fix: System.ArgumentException: Invalid Field Name {GUID} When Trying To Access a SharePoint 2010 List/Document Library

I recently had a customer bring to my attention an issue with one of their SharePoint 2010 document libraries they were trying to access, and could not. Upon the customer trying to access the list they were presented with a Correlation ID error that prevented them access to the library.

Looking at the SharePoint ULS logs for this correlation Id I saw this error:

System.ArgumentException: Invalid field name: {GUID} [URL of list]

With me not knowing what the field name was for the referenced {GUID}, I knew of two ways of getting it.

1. Through SQL or
2. by exporting the SchemaXML of the site

Both ways are discussed in a previous blog I did: http://jshidell.com/2012/06/07/removing-a-corrupted-site-column-in-sharepoint-2010/

After determining the field name for the {GUID} I was then able to identify the problem column or content type. In my case the issue was with a column name “TypeTaxHTField0” or simply “Type”. SharePoint by default appends the TaxHTField0 suffix to the end of all the static names.

Now that I have the Field Name Column, I needed a way to get into the lists settings to either delete or remove this column from the list. Since I was unable to access the list because of the correlation id, I had to determine the {GUID} of the list.

The way to get the {GUID} of the list I turned to PowerShell.

Below is the script I used to get the {GUID} of the list.

$site = Get-SPSite {URL OF YOUR SITE}
$web = $site.OpenWeb(“SUBSITE”)
$web.lists | Format-Table title,id
$web.Dispose()
$site.Dispose()

Once I got the {GUID} of the list I was then able to browse to the library settings by appending the {GUID} to the end of the list settings edit URL

i.e.
http://URL OF SITE/SUBSITE/_layouts/listedit.aspx?List={GUID}

Once inside the list settings I was then able to make the necessary changes. For me all I needed to do was remove the “Type” column from the Metadata Navigation Settings by removing it from both “Configure Navigation Hierarchies” and “Configure Key Filters”

Once I removed the “Type” column from the Metadata Navigation I then deleted the “Type” column from my list and then re-added it. Once I re-added it back into the list, I then re-added it back into the Metadata Navigation. Ater doing so I was able to access the list without error.

If you find you do not need that column at all, simply delete it from your list.

Hopefully this helps others who encounter the same issues.

Advertisements
  1. August 12, 2015 at 5:26 pm

    Hi
    I’m facing same exception message in SP2013 however the scenario and GUID is different.

    The runtime exception occurs whenever someone tries to Edit the CQWP. I checked in the ContentTypes table of the content database and couldn’t find any record using the last part of GUID as explained in your previous blog.

    The same CQWP scenario works fine on other site collections. I’m not sure what could be the reason. Any idea?

    Thanks

  2. August 12, 2015 at 8:05 pm

    Hi
    I’m facing same issue in a different scenario upon editing a CQWP in SP2013.
    I followed all the steps including each step shared in previous blog however the exception is still the same. I found a similar issue posted at following location and will need your valuable opinion on it.

    http://sharepoint.stackexchange.com/questions/148074/invalid-field-name-when-trying-to-edit-web-part/153098#153098

    Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: