An error occurred during processing of the field InventoryID for ARTran

  • 20 April 2023
  • 2 replies

Userlevel 3

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.MakeSub[Field](PXGraph graph, String mask, String[] allowedValues, Int32 DefaultValueIdx, Object[] sourceIDs)
   at PX.Objects.AR.SubAccountMaskAttribute.MakeSub[Field](PXGraph graph, String mask, Object[] sources, Type[] 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)


Best answer by Laura02 20 April 2023, 12:34

View original

2 replies

Badge +18

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!


Userlevel 3

@Laura02 , thanks I will have a look..


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved