Error on site navigation links

Hi Everyone,

We're seeing an issue on certain sitemap navigation items. Does anyone have any ideas on what might be causing this error? Do you know what we can do to fix it (without having to re-create all of the sitemap navigation links)?

Thanks,
James

'AccessAreaDropDown' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: 'AccessAreaDropDown' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: 'AccessAreaDropDown' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value]
System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) +1604142
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +107
System.Web.UI.WebControls.ListControl.PerformSelect() +34
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
Asi.Web.UI.WebControls.BusinessDropDownList.DataBind() +182
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
AsiCommon_Controls_Shared_SecurityAdmin_AccessSettings.DataBind() +387
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
Asi.Web.UI.AtomPanelBase.DataBind() +160
AsiCommon_Controls_ContentManagement_NavigationItem.DataBind() +5
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
Asi.Web.UI.AtomPanelPage.DataBind() +127
Asi.Web.UI.AtomPanelPage.EnsureDataBound() +60
Asi.Web.UI.AtomPanelPage.Page_Load(Object sender, EventArgs e) +408
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
Asi.ContentManagerNet.DisplayPageBase.OnLoad(EventArgs e) +49
Asi.Web.UI.DisplayPageBase.OnLoad(EventArgs e) +45
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Sounds like the set used

Sounds like the set used to control the security on that navigation has somehow been removed.  I don't see how that's possible because there are foreign keys in the database protecting it from that, but...  See if this query returns your navigation item:

Select * from DocumentMain where DocumentTypeCode = 'NAV' and AccessKey NOT IN (Select AccessKey from AccessMain)

If it does, try updating the AccessKey on that record to something standard like "00000000-0000-0000-CA00-000000000A01" (Administrators Full Control)

Cheers,
Courtney Robertson

Hi Courtney, That query

Hi Courtney,

That query doesn't return any rows. There seems to be a row in the AccessMain table for each version of the sitemap navigation item (2 versions).

I'll try comparing these nav items to working nav items to see what the differences are. Let me know if you have any other clues.

Thanks!
James

Strange

I was able to resolve it by setting the AccessKey to the "Everyone Full Control" option.

The items that are breaking are the ones where AccessKey is set to "Everyone Read", even though Everyone Read seems to be in the AccessMain and AccessArea tables.

If I go back into the sitemap item and set it to "Everyone Read" again through the UI, it works fine.. very strange..

Now it's back to the way it was before, except it works fine.. strange...

Strange indeed.  Glad you

Strange indeed.  Glad you were able to resolve it.

Thanks for pointing me in

Thanks for pointing me in the right place Courtney! I appreciate the help.

Cheers!