When WF loads data from WF UI action (on SD) and not via standard DataService>LoadData step, the loaded data are flagged as Created and not Loaded. So save to database throws an error - trying to insert duplicate values, because Inserts instead of Updates are generated
Workaround is to set UI action option CommitChangesAfterMerge to true.