@igorp I did not play enough with custom transactions but is weird that is working from the UI but not from script... check if you are accessing the record on dynamic mode or not, remember one of those require an specific order to set the values of the fields.