Dataset Errors and Finding Needles in a haystack...
System.ArgumentException: These columns don't currently have unique values.
at System.Data.ConstraintCollection.AddUniqueConstraint(UniqueConstraint constraint)
at System.Data.ConstraintCollection.Add(Constraint constraint)
at System.Data.DataTable.set_PrimaryKey(DataColumn[] value)
Usually these are caused by not having a fully qualified key - but it sure would be nice to have a useful message generated when the error occurs because of the data
For Example:
System.ArgumentException: These columns don't currently have unique values. Row#20 Key Value=“ABC“
at System.Data.ConstraintCollection.AddUniqueConstraint(UniqueConstraint constraint)
at System.Data.ConstraintCollection.Add(Constraint constraint)
at System.Data.DataTable.set_PrimaryKey(DataColumn[] value)