@goodname Good to know, I changed to sqlKeepOpenOnCommit and it seems to work fine.
When it was clear that Post of detail is triggered by Post of master, I assigned the dataset_id value in detail's BeforePost and called ApplyUpdates in detail's AfterPost.