Monday, December 29, 2014

Unexpected error on add from existing site columns in Sharepoint

I recently ran into an issue with trying to ‘Add from existing site columns‘ to one of my SharePoint lists on a specific SharePoint site.
When doing so I was presented with:

——————————————————————
Error
An unexpected error has occurred.
Correlation ID: GUID
—————————————————————–
Looking up that Correlation ID in the SharePoint 2010 ULS logs I saw this error:

“Unexpected System.ArgumentException:  No two choices should have the same ID at Microsoft.SharePoint.ApplicationPages.ChoiceCompareWithDefaultGroup.Compare”

What this initially told me was there were two Site Columns in my Site that was using the same internal name, and that Site column was associated with my list which is preventing me from adding any additional columns.
By browsing to the Site Collection Site Columns (http://portal/site/_layouts/mngfield.aspx) I noticed under one of my Site Column Groups that there were two Site Columns listed with the same InternalName, Type and Source.
After verifying  that this Site Column was not being used in my List I removed one of the Site Columns from that Site Column Group.
Once I removed that Site Column I went back to my list, and was now able to ‘Add from existing site columns‘ without error.

Hopefully this helps others who have encountered the same issue.

Related Posts:

  • Unexpected error on add from existing site columns in Sharepoint I recently ran into an issue with trying to ‘Add from existing site columns‘ to one of my SharePoint lists on a specific SharePoint site. When doing so I was presented with: —————————————————————— Error An unexpected err… Read More
  • Configure SMTP on Windows Server 2008 Setup and Configure SMTP Server on Windows Server 2008 R2 There has been some confusion about how to setup and configure SMTP on Windows Server 2008 R2. The confusion has arisen due to the SMTP server component not… Read More
  • Sharepoint 2013 Display Template Useful JavaScript to know when working with SharePoint Display Templates (#SPC3000) With the display templates feature in SharePoint 2013, you can highly customize the look of search using HTML, JavaScript, and jQuery.&nb… Read More
  • Sharepoint 2013 create custom callouts Callout pop up is one more UI change in SharePoint 2013. Metro UI was introduced in share point 2013 and one of the new concept is Callouts. This is very light weight Ui that shows item, user inform… Read More
  • Sharepoint Client Object Model anonymously accessing list items Recently i have faced issue that i have unable to retrieve list items anonymously in Sharepoint client side model.So i  found behaviour that  for anonymous users, using the Client Object Model, are blocked from usi… Read More

0 comments:

Post a Comment