We have some UD columns on the PartTran table that we need to populate for Quantity Adjustment transactions. Unless I’m missing something, I cannot write to these fields by using the InventoryQtyAdj BO, so I thought I’d just grab the PartTran record created after the adjustment was made to populate that data. However, I receive an error of “Asm Required” when calling the Update method.
partTranTableset = partTranClient.GetByID(sysDate, sysTime, tranNum);
if (partTranTableset != null && partTranTableset.PartTran.Any())
{
var partTran = partTranTableset.PartTran[0];
partTran.UserDefinedColumns["JobNum_c"] = "654321";
partTran.RowMod = "U";
partTranClient.Update(ref partTranTableset);
}
Can anyone explain why I might be receiving that error? Am I going about this in the wrong way?