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()