Support Article
IndexOutOfBoundsException occurs in PDC
KCP-163
Summary
IndexOutOfBoundsException occurs in the Pega Predictive Diagnostic Cloud (PDC) frequently.
Error Messages
[ PegaRULES-Batch-2] [ STANDARD] (ery.internal.PropertyQueryImpl) ERROR - Encountered an error while executing a Property query for Page list property, .pxResults(0), on page 'D_SAStagesList' of type 'Code-Pega-List' using 1 parameter(s) ([0]).
java.lang.IndexOutOfBoundsException: Invalid reference to the zeroth(0) element in list, pxResults. Lists start from 1.
at com.pega.pegarules.data.internal.clipboard.ReferenceElement.initialize(ReferenceElement.java:107) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.ReferenceElementFactory.acquire(ReferenceElementFactory.java:62) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.initialize(PropertyReferenceImpl.java:3033) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.PropertyReferencePoolImpl.get(PropertyReferencePoolImpl.java:137) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.PropertyReferencePoolImpl.get(PropertyReferencePoolImpl.java:115) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(ClipboardPageImpl.java:772) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(ClipboardPageImpl.java:739) ~[prprivate-data.jar:?]
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(ClipboardPageImpl.java:715) ~[prprivate-data.jar:?]
at com.pega.platform.clipboard.query.internal.PropertyQueryExecutor.lambda$new$2(PropertyQueryExecutor.java:67) ~[clipboard.jar:?]
at com.pega.platform.clipboard.query.internal.PropertyQueryExecutor.execute(PropertyQueryExecutor.java:77) ~[clipboard.jar:?]
at com.pega.platform.clipboard.query.internal.PropertyQueryImpl.resolve(PropertyQueryImpl.java:74) ~[clipboard.jar:?]
at com.pegarules.generated.activity.ra_action_saloadstages_83a74b6d0be24728a9ea1e066dda97d3.step8_circum0(ra_action_saloadstages_83a74b6d0be24728a9ea1e066dda97d3.java:919) ~[?:?]
Steps to Reproduce
Reload the Stage view.
Root Cause
A defect in Pegasystems’ code or rules.
The When condition was missing in Step 8 of the SALoadStages activity.
Resolution
Apply HFix-65093.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.