Key is not primary - Error

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
sheini76
Posts: 1
Joined: Wed 09 Sep 2020 15:36

Key is not primary - Error

Post by sheini76 » Wed 23 Sep 2020 10:58

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

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Key is not primary - Error

Post by MaximG » Mon 19 Oct 2020 19:43

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

Post Reply