Version: 2025.06-ext2
The issue shows up when saving a CDM form for the second time (CRUD::SAVE).
Looks like the client, after first save, doesn’t update info about the relationship (link) and when it tries to save for the second time, it uses stale link reference to try to remove previous link. It fails, but then also tries to add the new link, which causes “Duplicated link constraint violated” error.
This can be easily reproduced using the Preview App (advanced):
- change PersonEmployeeWithTeamsAndContracts_CFM model to use CRUD::SAVE (save button)
- run the app and go to Persons with Team Assignment and Contracts overview
- select a person and edit Place of Residence
- save the form
- once again edit Place of Residence (or any other field)
- save the form
You should get the error:
Regards,
Grzegorz Witek
