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

StringIndexOutOfBoundsException when submitting flow action



When submitting a flow action to complete an assignment, users encounter an error popup. 

Error Messages

The Flow Action pre-processing activity pyPopulateCaseContentsWrapper failed: java.lang.StringIndexOutOfBoundsException: String index out of range: -15

java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(
at com.pegarules.generated.activity.ra_action_pypopulatecasecontents_6f94cda29147b69a39b7a78da81d368d.step4_1_circum0(
at com.pegarules.generated.activity.ra_action_pypopulatecasecontents_6f94cda29147b69a39b7a78da81d368d.step4_0_circum0(
at com.pegarules.generated.activity.ra_action_pypopulatecasecontents_6f94cda29147b69a39b7a78da81d368d.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(

Steps to Reproduce

Complete an assignment.

Root Cause

A defect in Pegasystems’ code or rules. The pyPopulateCaseContents activity uses the pyWorklistAssignmentsDefinition Report Definition (RD) to retrieve non-internal Flow Assignments. However, internal assignments are also returned from the PZINTERNALCASEFLOW flow but these cannot be processed here.


Perform the following local-change:

The pyWorklistAssignmentsDefinition RD is used to retrieve the assignments list for a given case.

1. Add a Column "pxSystemFlow" in the RD which determines if the flow is internal or not
2. Add filter condition pxSystemFlow set to false which excludes internal flows.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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