are you sure the object shipment is commit? what happen if you reload the page?
sometime the object is not store on the database, but it is display on your screen because it is still in "state”, if it's the case try to implement a rollback or a new process when your are going back to your page.
if your object is commited, try to see if you don't commit that object somewhere, and check if there is no auto commit that is happening : https://forum.mendix.com/link/space/other/questions/92454
I think Yehoshua is correct. You are always creating a new Shipment when you visit the page as that is what the datasource microflow is doing. I suspect in this create action you are also setting the association between LineService and Shipment. I also suspect on the page that calls your datasource microflow you are retrieving by association all Shipments for the LineService. This means when you go back, the Shipment is still in memory so is showing up over the association. If you were retrieving by XPath it wouldn’t show as that always go via the database.
I think you should refactor how the association is set. It would make more sense to set it when you save the Shipping object. This means it would only show up on the association when the user has specifically chosen to save it. If you clicked the back button without saving, the object would then not show over the association.
I hope this makes sense and helps. Good luck!