Skip to main content
Question

Error: Value cannot be found in the system.


Forum|alt.badge.img

Getting the below error when trying to set value for a custom field. I can see the ContractID is in the cache.

All these steps are happening within a transaction scope , so values are yet to be saved to the DB , but are available in the cache.

Stack Trace : 

Error: [UsrMAKLContractID] 'XXXXXX' cannot be found in the system.

 at PX.Data.PXSelectorAttribute.throwNoItem(String[] restricted, Boolean external, Object value)
   at PX.Data.PXSelectorAttribute.Verify(PXCache sender, PXFieldVerifyingEventArgs e, Object& item)
   at PX.Data.PXSelectorAttribute.FieldVerifying(PXCache sender, PXFieldVerifyingEventArgs e)
   at PX.Data.PXCache.OnFieldVerifying(String name, Object row, Object& newValue, Boolean externalCall)
   at PX.Data.PXCache`1.SetValueExt(Object data, String fieldName, Object value)
   at PX.Objects.CR.MAKLQuoteMaintExt.ConvertNewSaleQuote(CRQuote quote) 
   at PX.Objects.CR.MAKLQuoteMaintExt.<>c__DisplayClass127_0.<ConvertToContract>b__0()
   at PX.Data.PXLongOperation.<>c__DisplayClass18_0.<StartOperation>b__0()

6 replies

Forum|alt.badge.img
  • Author
  • 69 replies
  • April 19, 2023

same steps worked for us in the previous version 2019 R1, currently we have the upgraded version 2022R1.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • April 19, 2023

Hi, @vibindas  Are you creating the on-the-fly and trying to assign it to a custom field?


Forum|alt.badge.img
  • Author
  • 69 replies
  • April 19, 2023

Hi @Naveen Boga , that is correct.


Forum|alt.badge.img
  • Author
  • 69 replies
  • April 19, 2023

any thoughts on why the same works on 2019 , but not on 2022R1 version?


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2640 replies
  • June 7, 2023

Hi @vibindas were you able to find a solution? Thank you!


Forum|alt.badge.img
  • Author
  • 69 replies
  • June 7, 2023

@Chris Hackett , sorry no luck. Only option I see is to set the values outside the transaction scope, save to db and then try to fetch the values. But personally feel it’s not a good approach.


Reply


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