Glad you figured it out ...
~~Bonnie
>The problem was that I decided to add more tables to the dataset, so I deleted it and regenerated the dataset.
>I noticed that the code related to the old dataset was not removed.
>Everything worked fine now.
>Thanks
>
>
>>How about posting some code, Nabil. Maybe we can help figure it out that way ...
>>
>>~~Bonnie
>>
>>
>>>I generated a dataset out of two related data adapters.
>>>When I try to retrieve data, the following error occurs
>>>"Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign key-constraints"
>>>I am sure that the relation between the data adapters are properly established.
>>>What Could Be The Reason?