In the for loop, just get the value of the field and check if it is empty or not and continue if it is not empty. for (j=1; j<=lineCnt; j++) { var qtyPickPackShip = recSO.getLineItemValue(‘item’, ‘quantitypickpackship’, j); … Continue reading Not updating a line when the value of Qtypickpackship field is not empty.