Retrieve a object in version 9.18.2

1
Hi,   Since I have changed Mendix version to 9.18.2 I am having problems with the retrieve from association. When I try to retrive an object that hasn’t been commited yet, sometimes it works but sometimes doesn’t. As you can see in the image below the assocciation is created properly. The object always got the other object associated but when I do the retrieve to get the second object it returns an empty object.  The user running the microflow has read/write permissions on the association. With the same user and the same situation, the retrieve sometimes works and sometimes it doesn't.   Thanks.        
asked
3 answers
2

When we moved from Mx8 to currently Mx9.12.5 we also encountered that sometimes a retrieve over association was suddenly empty in submicroflows. Fix was indeed to retrieve it over the database. We did create a support ticket for this because this used to work and after the upgrade it did not anymore and that should not be happening.

Regards,

Ronald

 

answered
1

Hi Mikel,

I think that a security issue is, I think the user who is triggering the microflow doesn't have the correct rights to read/ write the association ( depending on the scenario you need)

answered
1

HI Mikel, 

 

I have noticed some odds in Mx9.18. In my case, without explicit retrieve some associations, the “List Operator Filter by Expression” didn’t worked as expected…

I’m suspecting that we have new bugs in this version. As retrieve by association works as lazy load when the association is not in memory (internally mendix must retrieve from db)

 

But, for the case you stated, looks similar this thread → https://forum.mendix.com/link/questions/14232

Maybe the Garbage collector is removing the objects…

 

If your MF is running with already persisted entities, you may try change your Retrieves by Association to Retrieve From Database. 

If it solves your problem, please fill a Bug Report in Mendix Support !

 

Best regards

 

 

answered