Data saved via Microflow shows in DB overview but disappears after session reload

0
Hello everyone,I am currently facing an issue in Mendix (10.18.6) where I save data to the database using a Microflow. The data shows up correctly in Mendix's built-in databas viewer. However, after reloading the session, the data disappears and is lost.Has anyone experienced somethins similar or knwos of any solutions? What could I check to ensure that the data remains saved permanently after the Microflow execution?
asked
5 answers
0

Lukas,

When you save the data are you selecting either Yes or Yes without events in the Commit section of your Create / Commit action?

answered
0

Hi Lukas


Can you share your logic? I suspect that after commiting the object maybe due to any error does the actions/microflow would be rolled back using error handling. But without seeing the logic it is difficult for us to guide.

answered
0

Hello,

You might be updating an object in your Microflow, but the changes are never being saved to the database. This can happen if you're using a Change Object activity without a subsequent Commit Object, or if the commit configuration isn't set up as expected.Make sure the Microflow includes an explicit Commit Object(s) activity after making changes

answered
0

Check with the entity access of the Entity. If the access is not given this might be also one issue.

Check if there is any error appearing before the microflow transaction completed.

Accept this answer if you find this has given you a solution

answered
0

Another possibility is that your microflow does not commit the object but, it does commit another object that references the first object. The first object is then temporary saved to the database (autocommit). You have to commit the first object explicitly, otherwise it will be removed from the database when the session ends. In that case you should see a warning in the logging.

answered