Support Article
¿¿¿¿¿¿¿Error occurs after completing a child case
SA-52371
Summary
Error occurs after completing a child case.
Error Messages
The Flow Action pre-processing activity pyPopulateCaseContentsWrapper failed: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[fault (self-tuning)'] [ STANDARD] [ ] [ CentralOps:01.01.01] (fo.TFKB_CentralOps_Work.Action) ERROR - Error in RDB-List
com.pega.pegarules.pub.database.DatabaseException: There was a problem getting a list: code: 933 SQLState: 42000 Message: ORA-00933: SQL command not properly ended
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at com.pegarules.generated.activity.ra_action_pyloadmycasesnested_762840912f98bef09a9c03dc97284e2b.step5_circum0(ra_action_pyloadmycasesnested_762840912f98bef09a9c03dc97284e2b.java:332)
at com.pegarules.generated.activity.ra_action_pyloadmycasesnested_762840912f98bef09a9c03dc97284e2b.perform(ra_action_pyloadmycasesnested_762840912f98bef09a9c03dc97284e2b.java:106)
at com.pegarules.generated.activity.ra_action_pypopulatecasecontentswrapper_ca8f9742ef3ce434e613d4db3af658fc.step4_circum0(ra_action_pypopulatecasecontentswrapper_ca8f9742ef3ce434e613d4db3af658fc.java:542)
Steps to Reproduce
- Create a parent case
- Create multiple child cases
- Resolving the child cases. Error occurs after the last child case is resolved
Root Cause
A defect in Pegasystems’ code or rules. The pyloadmycasesnested activity does not check if the insKey length is greater than 0.
Resolution
Perform the following local-change:
Add a check in the Java step of the pyloadmycasesnested activity to check if the length of insKey (from the list of pxCoveredInsKeys) is not equal to 0.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.