Support Article

Modal dialog close/cancel causing error



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(
at java.util.ArrayList.get(
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(
at com.pegarules.generated.activity.ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.step36_circum0(
at com.pegarules.generated.activity.ra_action_submitmodalflowaction_b6a63d00dd68c1d73b22d8c6572111f4.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
... 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.


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


Published November 3, 2016 - Updated November 10, 2016

Have a question? Get answers now.

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