Associated object should not have already been retrieved over schema when new data added to object in data grid 2
0
I have a visit creation form that has multiple objects tied to it, the ones relating to my issue are: Visit 1 - * Visitor Visit 1 - * Vehicle Visitor 1 - 1 Vehicle Essentially you create your visit and then add visitors to it, then in a pop up window you add vehicle details which you attach to a visitor and on save it will populate the datagrid2 which is on the main "New Visit" page. None of my objects have been committed and all of this is done using nanoflows and associations, as everything needs to be validation checked at the end (and as I had issues with auto commit) everything is added and then committed at the end. However when I add Vehicle details once I click save I get this error pop up: com.mendix.webui.WebUIException: Exception while executing runtime operation at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:59) Caused by: com.mendix.webui.WebUIException: Exception while retrieving data for 'VisitorManagement.NewVisit.dataGrid2_ParkingList' on document 'VisitorManagement.NewVisit' at com.mendix.webui.actions.client.RetrieveAction.apply(RetrieveAction.scala:51) Caused by: com.mendix.webui.WebUIException: Associated object should not have already been retrieved over schema at com.mendix.webui.actions.client.RetrieveAction.$anonfun$attachAssociatedPartialObjects$3(RetrieveAction.scala:192) I have narrowed down the issue to this being the data grid 2 displaying the Visitors Name through an association, when I remove the column everything works fine., however I really would like this kept in. Something else I am struggling to understand however is the error appears to be inconsistent, about 20% of the time it works and the data grid updates successfully and displays the visitors name so it should be something that I can easily fix. I have tried the refresh object action in a nanoflow to refresh all the objects available to the nanoflow but no luck. Edit: I have done some more testing using the List View and regular Data Grid and they have not been an issue, exact same setup showing the same data but haven't thrown an error Any ideas are appreciated Thanks