Skip to main content

Error is occurring when adding InventoryID to ARTran .

Stack Trace:

Error: An error occurred during processing of the field InventoryID: CS Error: Invalid mask specified in segment 5 for Sales Sub. from..

PX.Objects.CS.PXMaskValueException: CS Error: Invalid mask specified in segment 5 for Sales Sub. from.
   at PX.Objects.CS.PXDimensionMaskAttribute.MakeSubuField](PXGraph graph, String mask, Stringn] allowedValues, Int32 DefaultValueIdx, Objectc] sourceIDs)
   at PX.Objects.AR.SubAccountMaskAttribute.MakeSubeField](PXGraph graph, String mask, Objectj] sources, TypeT] fields)
   at PX.Objects.AR.ARInvoiceEntry.ARTran_SubID_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)
   at PX.Data.PXCache.OnFieldDefaulting(String name, Object row, Object& newValue)
   at PX.Data.PXCache`1.SetDefaultExt(Object data, String fieldName, Object value)
   at PX.Objects.AR.ARInvoiceEntry.ARTran_InventoryID_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
   at PX.Data.PXFieldUpdated.Invoke(PXCache sender, PXFieldUpdatedEventArgs args)
   at PX.Data.PXCache.OnFieldUpdated(String name, Object row, Object oldValue, Boolean externalCall)
   at PX.Data.PXCache`1.FillWithValues(TNode item, TNode copy, TNode newitem)
   at PX.Data.PXCache`1.FillWithValues(TNode item, TNode copy, TNode newitem)
   at PX.Data.PXCache`1.Update(Object data, Boolean bypassinterceptor)
   at PX.Data.PXCache`1.Update(Object data, Boolean bypassinterceptor)
   at PX.Data.PXSelectBase`1.Update(Table item)

Hello @vibindas ,

I am not a developer, so I can’t help with code. I am thinking about the error “Invalid Mask” and it seems like it could be caused by something other than code (data records), possibly.

I think the error is related to IN Posting Class on one or more items. IN Posting class, in this example, is saying “Get both Subaccount Segments from the Inventory Item”.

Possibly your tenant has Inventory Items on AR Tran records where segment 5 is missing or incorrect. To determine what is a “correct” value for segment 5, look at Segment Values for Segment 5 of Subaccount Segmented Key.

Then look at the Sales Subaccounts on all items to see the items that don’t have segment #5 from the above list.

Is there any Trace error that might name Inventory ID’s with a problem, or specific AR Tran reference numbers?

If the problem is in the code, then a developer will come along to help.  Good luck!

 


@Laura02 , thanks I will have a look..


Reply