Search found 1 match

by sheini76
Wed 23 Sep 2020 10:58
Forum: EntityDAC
Topic: Key is not primary - Error
Replies: 1
Views: 17572

Key is not primary - Error

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