Arguement Exception??

  • Thread starter Thread starter si_owen
  • Start date Start date
S

si_owen

Folks,

Has anyone ever come across this exception before:

This constraint cannot be enabled as not all values have corresponding
parent values.

I have not changed any of my code, sql or databases and my system
suddenly started bouncing back this error.

Any ideas?

Cheers,

Simon
 
Yeah Sure.

It seems to be only effecting my document managemt system which was
wrote by a former collegue. The problem relates to java opening a
windowed aspx page, the application has three different windows that
can be opened and the problem is only effecting two windows.

The error bounced back is:

Server Error in '/' Application.
--------------------------------------------------------------------------------

This constraint cannot be enabled as not all values have corresponding
parent values.
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.ArgumentException: This constraint cannot be
enabled as not all values have corresponding parent values.

Source Error:


Line 45: End If
Line 46:
Line 47: menuRadTreeView.DataBind()
Line 48: infoTypeTreeView.DataBind()
Line 49:


Source File: C:\Program Files\Immediacy 5.3\Websites\Intranet_dev
\webroot\custompages\documentUpload.aspx.vb Line: 47

Stack Trace:


[ArgumentException: This constraint cannot be enabled as not all
values have corresponding parent values.]
System.Data.ConstraintCollection.Add(Constraint constraint, Boolean
addUniqueWhenAddingForeign) +502
System.Data.DataSetRelationCollection.AddCore(DataRelation
relation) +1069
System.Data.DataRelationCollection.Add(DataRelation relation) +138
System.Data.DataRelationCollection.Add(DataColumn parentColumn,
DataColumn childColumn) +43

Telerik.WebControls.RadTreeViewDataBinder.BindToIListSource(IListSource
listSource) +142
Telerik.WebControls.RadTreeView.PerformDataBinding(IEnumerable
data) +414

System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable
data) +111
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments
arguments, DataSourceViewSelectCallback callback) +29
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
documentUpload.Page_Load(Object sender, EventArgs e) in C:\Program
Files\Immediacy 5.3\Websites\Intranet_dev\webroot\custompages
\documentUpload.aspx.vb:47
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210


Again I had not changed any of the dll's, or any code or any sql used
by the system.

Any help would be great.

Thanks,

Simon
 
All,

I have figured the problem out. It was some new pages that I had added
to my CMS, the problem related to the menu datasource being able to
find nested pages when the parent page was not physically visible in
the menu structure.

Thanks for your posts.

Simon
 
Back
Top