I'm inserting new row to the DataProvider and I'm getting
java.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.INSERT_ROW_CONFLICT row 1 Cannot add or update a child row: a foreign key constraint fails (`vmsdev/accounts`, CONSTRAINT `accountstatuses_accounts_fk` FOREIGN KEY (`statusid`) REFERENCES `accountstatuses` (`statusid`))
javax.faces.el.EvaluationException: java.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.INSERT_ROW_CONFLICT row 1 Cannot add or update a child row: a foreign key constraint fails (`vmsdev/accounts`, CONSTRAINT `accountstatuses_accounts_fk` FOREIGN KEY (`statusid`) REFERENCES `accountstatuses` (`statusid`))
at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
Despite the fact I provide a foreign key for statysid and this foreign key exists in accountstatuses table.
Any ideas?