did you inspect if indeed the data does fit the constraint you are imposing in your model? SQLite does a "shallow" check, so it's possible that even if you're indeed specifying in your model some costraint, it was not checked by SQlite. >From the error it seems that the row of the charon table has a "deviceservices" column filled with a value that is not already in the referenced table (named "services" maybe ?).
--

