Token List - Collection - IllegalStateException

Hello together,

I have two entities Auftragnehmer and anZusatzQualifikation with a MANY_TO_MANY Relationship.
In the “Auftragnehmer” Edit Screen i can assign “anZusatzQualifikation” Objects:

image

This works absolutly fine, as long as the “Auftragnehmer” Object already exists.

If i create a new “Auftragenehmer” Object and add “anZusatzQualifikation” Objects and try to save it, i get the following error:

image

If i create the “Auftragenehmer” Object first and save it, then open the edit screen AGAIN, AND THEN add “anZusatzQualifikation” Objects, it works.

I could disable the “Token List” on creation of the “Auftragenehmer” Object. But thats a bad solution, usability wise.

Thanks and Best Regards
Daniel

Hello guys,

I just found the Issue:

These are the Datasources for my “Auftragnehmer” Edit Screen:
image

the “_full” View I’ve created, had the “auftragnehmers” Foreign Key attribute of the “anZusatzQualifikationFK” Attribute selected. I’ve just de-selected it, now it works:

image

Thanks anyway
Daniel

Can you show us queries from collectiondatasource?