This question is locked. New answers and comments are not allowed.
Hi there,
I am getting a "The INSERT statement conflicted with the FOREIGN KEY constraint " exception when trying to just throw some dummy data into a database for testing. The main object I am trying to create (insert a record for) is an Account. There is also a ForgotPassword object, which has an association (1:1) with Account, however, I don't want to be required to create a ForgotPassword object in order to be able to create an account object. Should I not have an association between these two objects to accomplish this?
Thanks much,
Eric
I am getting a "The INSERT statement conflicted with the FOREIGN KEY constraint " exception when trying to just throw some dummy data into a database for testing. The main object I am trying to create (insert a record for) is an Account. There is also a ForgotPassword object, which has an association (1:1) with Account, however, I don't want to be required to create a ForgotPassword object in order to be able to create an account object. Should I not have an association between these two objects to accomplish this?
Additional information: Insert of
'146059497-04ac8908-682b-4544-8332-a7bfa4d41f7a'
failed: Telerik.OpenAccess.RT.sql.SQLException: The INSERT statement conflicted with the FOREIGN KEY constraint
"ref_Account_ForgotPassword"
. The conflict occurred
in
database
"horizon"
, table
"dbo.ForgotPassword"
, column
'forgot_id'
.
Thanks much,
Eric