Agent activity failing with java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 exception.
I have updated one of the environment to Pega 8.3.1 then I have imported an application in this environment. In this application we have a process where we are creating child cases using Agent rule. When this activity is executed it is failing with java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 exception. The same activity is working in Pega 7.3 but failing here.
-
Like (0)
-
Accepted Solution
Hi Marc,
The issue is fixed now. The issue was with the page which we use as step page at obj-open-by handle. This page has a structure as AuditConfirmCase.AuditReference(1).AccNo.AccountNumber. The AccNo page was getting blank and hence the Property-set was failing. I have copied this page on a seperate at the begning of the loop and then used this copied page in property-set. This fixed the issue.

Hello,
Do you mind sharing both traces? Can you double check your PegaRULES logs as well. Anything interesting there?

The issue is coming from activity called " CREATESUBCASEFORACCOUNTNO" on step 4.3.3.
Can you check what this Property-Set is doing exactly?
Hi Marc,
Yes CREATESUBCASEFORACCOUNTNO is the agent activity. At step 4.3.3 in property set we are just setting values from a pagelist page to the Workpage whichi have created on 4.3.2 step.
We have same logic in Pega 7.3 and Pega 8.3. Not getting a clue why its giving error in Pega 8.3.

How many pages are you expected on AuditConfirms page? I can see 3 on your working environment and just 1 on the not working one?
Accepted Solution
Hi Marc,
The issue is fixed now. The issue was with the page which we use as step page at obj-open-by handle. This page has a structure as AuditConfirmCase.AuditReference(1).AccNo.AccountNumber. The AccNo page was getting blank and hence the Property-set was failing. I have copied this page on a seperate at the begning of the loop and then used this copied page in property-set. This fixed the issue.

Great. Good work and thank you for sharing the details.