I have found a bug in CDS Version 9.1.0000.7822, which prohibits me from creating associated records when the nature of the relationship between two entities is many-to-many.
To replicate the error:
- Create two entities.
- Establish a many-to-many relationship between the two entities.
- Put a subgrid on the form of one of the entities.
- Associate the subgrid with the other entity.
- Save and publish the form.
- In your application, enter the form with the subgrid.
- Click on the "Add Existing XXXXX"-button.
- Press the search icon.
- Click on the "New"-button that appears.
- Click on the "OK"-button on the prompt that appears.
- On the form of the other entity, enter the necessary details.
- Click "Ctrl + S" on your keyboard.
- "Container does not exist"-error appears in a prompt.
Implications:
The new record is saved dispite the error message - but the relationship to the associated record is not established (this has to be created manually afterwards).
Worth noticing:
The error-prompt does not appear, if you press the "Save"-button on the new record (i.e. rather than "Ctrl + S"). Nevertheless, the system fails in both cases to create the associated record between the two entities.
Also worth noticing:
The same issue can be triggered if you attempt to create a record through the "Associated view" / "Related to"-function. In other words, it's a general issue with the many-to-many relationship in CDS.
Could anyone help?