You’ll often want to select the line before committing it. I would try that. These methods are also only available in dynamic mode. So if you’re currentRecord is in static mode you will need to just use setSublistValue with the line and then you won’t need to commit the line as it isn’t in dynamic mode.