Page 1 of 1

Key is not primary - Error

Posted: Wed 23 Sep 2020 10:58
by sheini76
Hello,

when i try to reset an entity with the method "Cancel" then i always get the error message EAssertionFailed - 'Key is not primary (D:\ProjectsClone3\Delphi\EntityDac\Source\EntityDAC.Cache.pas, line 2237)'.

A reload throws the same error.

But the entity has a PrimaryKey. Editing the entity and saving with "Save" works fine.

Thanks for your help.

Greetings
Stefan

Re: Key is not primary - Error

Posted: Mon 19 Oct 2020 19:43
by MaximG
Thank you for the information, however, it's not enough to reproduce the issue. Please compose and send us a simplest sample, execution of which causes the issue. In addition, we will need the model (*.enml) For your convenience, please use the e-support form https://www.devart.com/company/contactform.html