I’m trying to add a field to the SOLine DAC (field: CopyFromItemID) which will be used for another purpose and needs to be different than the InventoryID field used on SOLine. I figured it would be easy to just re-use the StockItem attribute for a quick and easy selector. But I’m running into an error message and I’m not sure why. It’s a very simple setup, here is the added field to the SOLineExt DAC:
public class SOLineExt : PXCacheExtension<PX.Objects.SO.SOLine>
{
#region UsrCopyFromItemID
[PXDBInt]
[StockItem]
[PXUIField(DisplayName="CopyFromItemID")]
public virtual int? UsrCopyFromItemID { get; set; }
public abstract class usrCopyFromItemID : PX.Data.BQL.BqlInt.Field<usrCopyFromItemID> { }
#endregion
}
The I’ve added the selector to the Sales Order page (in the Tab > Detail section) and published. However whenever I go to load a previously saved Sales Order, I always end up with this error message.

If I start new and populate the fields I get a different error message:

I must obviously be missing some important detail here and I’m not sure what. I have this in a fresh instance with no other customizations. Anyone have any thoughts?