Error filling typed DataSet with relations

  • Thread starter Thread starter Pi
  • Start date Start date
P

Pi

Hey guys,

In my schema I have created various relationships between tables in my
dataset. However when I attempt to fill the data set I get a
ConstraintException with the message Failed to
enable constraints. One or more rows contain values violating
non-null, unique, or foreign-key constraints. the
keys that the relations are set to nullable.

Does anyone have any idea?

Regards,
Tommy
 
Hi Tommy
this means that one of the data items that you want to fill the dataset
with violates the constrains that specify in your constrains?? so you need
to get back to your data and make sure of it . one way to over come this is
to use "System.Data.XmlReadMode.IgnoreSchema' when you fill data into your
dataset.
 
Back
Top