The Artima Developer Community
Sponsored Link

.NET Buzz Forum
DataSet hell - "Failed to enable constraints. One or more rows contain values...."

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
DataSet hell - "Failed to enable constraints. One or more rows contain values...." Posted: Oct 3, 2004 1:19 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: DataSet hell - "Failed to enable constraints. One or more rows contain values...."
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement
A friend asks:

When I fill my dataset I get this:
"Failed to enable constraints. One or more rows  contain values violating non-null, unique, or foreign-key  constraints."
As you can see, "one or more" is not very informative. How do I identify the criminal ?
Since the only solution I know is to go through each table and compare it's constraints,
Is there a more efficient way to solve this ?

I'll admit this is one of the more annoying problems I've encountered when working with the Dataset object. 
And no - I don't know an easy way to find out who the culprit is. Do you? Please share in the comments.

Read: DataSet hell - "Failed to enable constraints. One or more rows contain values...."

Topic: *Must have* resource on Web services interop Previous Topic   Next Topic Topic: Now there's a limo...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use