Question
Coforge Limited
IN
Last activity: 9 Apr 2020 5:59 EDT
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)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 9 Apr 2020 5:59 EDT
Coforge Limited
IN
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.
Pegasystems Inc.
FR
Hello,
Do you mind sharing both traces? Can you double check your PegaRULES logs as well. Anything interesting there?
Coforge Limited
IN
Hi Marc,
I have attached the Tracer logs. I will check the logs as you suggested.
Regards,
Pegasystems Inc.
FR
Hello,
I don't see the tracer XML anywhere?
Coforge Limited
IN
Tracer logs attached in the Zip
Pegasystems Inc.
FR
The issue is coming from activity called " CREATESUBCASEFORACCOUNTNO" on step 4.3.3.
Can you check what this Property-Set is doing exactly?
Coforge Limited
IN
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.
Pegasystems Inc.
FR
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
Updated: 9 Apr 2020 5:59 EDT
Coforge Limited
IN
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.
Pegasystems Inc.
FR
Great. Good work and thank you for sharing the details.