Error - Autocommitted objects detected

0
Hi all,In our app, we get the following errors since we've upgraded our app from 10.24 to 11.12:`com.mendix.systemwideinterfaces.MendixRuntimeException: Autocommitted objects detected at end of transaction for volatile session for entities: `We of course try to prevent autocommits, but now that the entire logic fails with the autocommits a lot of logic in our app needs to be retested. Did anyone else also experience these error after upgrading?
asked
1 answers
0

Hi Kevin,


This is a well known error in mendix.

This happens when you commit the parent object then all the associated objects and associations is also auto commited and saved in the database to keep the model in sync.

This is done by mendix ( but the associated objects are in changed state).


So,

You need to explicilty commit the children/associated objects in the microflow too.


for more info read this documentation.

https://docs.mendix.com/refguide/committing-objects/#autocommit-and-associated-objects.


Hope it helps 😊

answered