Hello Ady,
here is the exception message:
<code>
{"Insert of '1893964241-' failed: Telerik.OpenAccess.RT.sql.SQLException: ERROR: 23503: insert or update on table \"project\" violates foreign key constraint \"ref_project_industry\"\r\n at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute()\r\n at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute()\r\n at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)\nINSERT INTO \"project\" (\"id4\", \"id2\", \"nme\", \"id3\") VALUES (?, ?, ?, ?)\n(set event logging to all to see parameter values) Telerik.OpenAccess.RT.sql.SQLException: ERROR: 23503: insert or update on table \"project\" violates foreign key constraint \"ref_project_industry\"\r\n at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute()\r\n at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute()\r\n at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)"}
</code>
Here is the demo project uploaded (just download TelerikTest.zip on the page):
http://files.uloziste.com/101c914cb52fea1d/
Please just update the database from model.
Important: I have just discovered, that changing the primary key generation of the Project to HighLow solves the problem (but you have to have voa_keygen table in your database and therefore use other mechanism). But what is really tricky: changing the behavior back to DatabaseServerCalculated causes the mechanism to behave correctly:)
So I had to delete the model file and create the model again and the bug is really still there.
BR
Ondrej