PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

 
 
Brett Johnson
Guest
Posts: n/a
 
      8th Mar 2004
Not sure if this issue has been mentioned in the group, but if you
have an XML dataset and you change a column name within the raw XML,
the codebehind will not change and you will get this bogus message.
You need to do a find on the old column name in the codebehind file
and replace it with the new column name. A good way to verify that
this might be one of your issues is to use a datagrid with autogen
columns, turn off the enforcecontraints on the dataset, then look at
the header of the grid and see if any column names aren't what you
expect or if there are missing values.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. nadeem_far@yahoo.com Microsoft ADO .NET 4 20th Mar 2007 05:04 PM
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. bazzer Microsoft ASP .NET 1 6th Apr 2006 02:31 PM
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. googler Microsoft ADO .NET 1 17th Feb 2006 09:48 PM
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraint paul tomlinson Microsoft ADO .NET 1 3rd Apr 2005 12:36 AM
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. Luther Miller Microsoft ADO .NET 2 3rd Oct 2003 09:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 AM.