Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Error in Metadata Navigation Setting in SP 2010

$
0
0

Hi -

When I access site setting and Metadata Navigation Setting, this error appears:

System.ArgumentException: An item with the same key has already been added.   

 at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)    
 at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)    
 at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)    
 at Microsoft.SharePoint.Publishing.CachedList.GetMetadataNavSettingsXmlNoCache(SPList sourceList)    
 at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavSettingsXmlNoCache(SPList sourceList)    
 at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavigationSettings(SPList sourceList)    
 at Microsoft.Office.DocumentManagement.Pages.MetaNavSettingsPage.OnLoad(EventArgs args)    
 at System.Web.UI.Control.LoadRecursive()    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

When I get the property using PS:

PS C:\Users\vzy4yh>  $list = $web.Lists[17]
PS C:\Users\vzy4yh> $listNavSettings = [Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSetting
s]::GetMetadataNavigationSettings($list)
Exception calling "GetMetadataNavigationSettings" with "1" argument(s): "An item with the same key has already been add
ed."
At line:1 char:134
+ $listNavSettings = [Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings]::GetMetadataNa
vigationSettings <<<< ($list)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

Your response is appreciated.

Thanks,

Fran



Viewing all articles
Browse latest Browse all 21070

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>