Skip to main content
Solved

An error occurred during processing of the field InventoryID for ARTran


Forum|alt.badge.img

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

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!

 

View original
Did this topic help you find an answer to your question?

2 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • Answer
  • April 20, 2023

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!

 


Forum|alt.badge.img
  • Author
  • 70 replies
  • April 20, 2023

@Laura02 , thanks I will have a look..


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings