Application engine calling GetNextNumberWithGapsCommit function failing intermittantly
Hi All,
We have a custom App engine using CI which calls GetNextNumberWithGapsCommit function present in delivered peoplecode event.
It fails intermittantly and goes to success when run again.
Error from Trace file as below:
Begin SCC_DERIVED_AUS.SCC_RE_ENTER_TFN.SavePreChange level 0 row 0
1929926 09:29:15.050 0.000228 1: Evaluate %Component
1929927 09:29:15.051 0.000259 2: When Component.ADM_APPL_ENTRY1
1929928 09:29:15.051 0.000226 Fetch Field: COMPONENT.ADM_APPL_ENTRY1 Value=ADM_APPL_ENTRY1
1929929 09:29:15.051 0.000219 3: If All(SCC_DERIVED_AUS.SCC_TFN) Then
1929930 09:29:15.051 0.000251 7:
1929931 09:29:15.052 0.000317 >>>>> Begin ADM_APPL_DATA.ADM_APPL_NBR.SavePreChange level 0 row 0
1929932 09:29:15.052 0.000257 1: If Value(ADM_APPL_DATA.ADM_APPL_NBR) = 0 Then
1929933 09:29:15.052 0.000226 Fetch Field: ADM_APPL_DATA.ADM_APPL_NBR Value=00000000
1929934 09:29:15.052 0.000222 2: ADM_APPL_DATA.ADM_APPL_NBR = String(GetNextNumberWithGapsCommit(INSTALLATION_SA.ADM_APPL_NBR_LAST, 99999999, 1));