Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Modal dialog close/cancel causing error

SA-29978

Summary



When Users try to close the modal dialog using the cancel button or X icon, results in an error.



Observed IndexOutOfBoundsException in the logs


Error Messages





Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyBase.getPropertyValue(ClipboardPropertyBase.java:1584)
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.doGet(PropertyReferenceImpl.java:1327)
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.get(PropertyReferenceImpl.java:1145)
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:1711)
at com.pegarules.generated.activity.ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.step36_circum0(ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.java:3614)
at com.pegarules.generated.activity.ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.perform(ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.java:698)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3020)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:617)
... 52 more


Steps to Reproduce

  1. Configure model dialogue with RepeatGrid which has expand pane.
  2. Make sure the expanded pane has tab group with multiple tabs.
  3. Launch model dialogue.
  4. Expand tabs and close the model dialogue.
     

Root Cause



Developers has overridden pyModalCancelAction activity which will be invoked as part of  SubmitModalFlowAction activity.
As part of the customized activity developers have put in a Page-Remove step, which is removing the page that is referenced as local.interestpage in the SubmitModalFlowAction. Whenever any step of  SubmitModalFlowAction is trying to act on interestPage, which is removed, the stated exception is observed.

Resolution



Explained the root-cause and suggested to make the changes as required.

 

Suggest Edit

Published November 10, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us