Key is not primary - Error
Posted: 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
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