Are you committing the parent object before the children?
The only other place this exception is mentioned on the forum is here:
https://forum.mendix.com/link/space/microflows/questions/10488
In his comment Ronald Catersels suggests the issue from that thread was fixed in Mendix Studio Pro 8.12.
The exception description states:
Thrown when a snapshot transaction attempts to update data which was modified after the snapshot transaction read it.
Did you check if the microflow is triggered twice? Or that another process is changed the values at the same time?
It looks like an instance of an object is committed with different data by different users, but I'm not too sure about this either. Maybe you can reproduce it locally by attempting to update a certain object in two different microflows with two different sessions? I'd create 2 accounts, open both in an incognito window/after clearing cookies so you'll have 2 different sessions, press the button for both sessions and see what happens. Remember to include a delay so you are sure that both run at the same time (and share the answers, I'm curious).
Hi Kevin,
I’m not sure about my answer, but it is worth checking it:
This part of the error: Caused by: com.mendix.datastorage.exception.UpdateConflictException: null at com.mendix.connectionbus.connections.jdbc.JdbcDataStore.withPreparedStatement(JdbcDataStore.scala:1079) triggered me to think that maybe on an attribute of your Object that you want to commit, you have an Event Handler. (Before or After Commit). If the Attribute has value null (empty), this could be a reason for an exception.
Go Make It
Hi Kevin,
Iam facing a similar kind of issue in mendix 8.18.19 for all the microflows which were executed concurrently. Do you have any idea how to fix this ?
Failed to commit :
com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.datastorage.exception.UpdateConflictException.
Please let me know if you have any inputs