SyncResolver.INSERT_ROW_CONFLICT

View: New views
1 Messages — Rating Filter:   Alert me  

SyncResolver.INSERT_ROW_CONFLICT

by gennadiys-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?