WCF Update UD Columns on PartTran

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?

1 Like

Probably asking for an assembly field to be passed in the ds in order to update, but you’d have to double check via client trace

Since you are using code, there would be no issue with updating the UD field directly via Db.PartTran instead of a BO Method.

Sorry, I may not have been clear enough on what I’m doing. The quantity adjustments are being made by an external application using WCF which will contain the values needed for the UD columns on the PartTran table. If this were in a BPM I would change the record with Db.PartTran but I did not think that was an option with an external application.

Hi @eric.turovaara, do you figure out what makes the error? Thanks