Error message

  • Thread starter Thread starter bbawa1
  • Start date Start date
B

bbawa1

m getting this error when I run my asp application. I couldn't figure
out where is the problem.
Failed to enable constraints. One or more rows contain values
violating non-null, unique, or foreign-key constraints

this.Adapter.SelectCommand = this.CommandCollection[0];
Line 763: dsnew.tbTicketsDataTable dataTable = new
dsnew.tbTicketsDataTable();
Line 764: this.Adapter.Fill(dataTable);
Line 765: return dataTable;
Line 766: }
 
As the error says, you have some constraints set in your dataset schema and
the data you are trying to insert or update violate the constraints. Check
your data or relax your constraints.
 
Back
Top