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

Merge wizard fails with ArrayIndexOutOfBoundsException

SA-46587

Summary



Merge wizard fails with ArrayIndexOutOfBoundsException when merging a branch ruleset to a new or existing ruleset.


Error Messages



UI error: Failed to complete merge - see errors below

PegaRULES log error:

Exception caught while evaluating when
java.lang.ArrayIndexOutOfBoundsException: 0
at com.pegarules.generated.pzRuleSetNameIsABranch_071017__r0ECi0EdVafz5796VRmFw.pzRuleSetNameIsABranch07_10_17(pzRuleSetNameIsABranch_071017__r0ECi0EdVafz5796VRmFw.java:109)
at com.pegarules.generated.pzRuleSetNameIsABranch_071017__r0ECi0EdVafz5796VRmFw.invoke(pzRuleSetNameIsABranch_071017__r0ECi0EdVafz5796VRmFw.java:77)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.pega.pegarules.generation.internal.library.LibraryFunctionUtilityImpl.resolveMethodCall(LibraryFunctionUtilityImpl.java:3138)
at com.pega.pegarules.session.internal.mgmt.Executable.resolveMethodCall(Executable.java:11077)
at com.pegarules.generated.activity.ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.step2_2_1_circum0(ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.java:485)
at com.pegarules.generated.activity.ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.step2_2_0_circum0(ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.java:441)
at com.pegarules.generated.activity.ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.step2_0_circum0(ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.java:323)
at com.pegarules.generated.activity.ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.perform(ra_action_pzopenallsourcerulesets_c5854065423f645c067c2c4feba66110.java:108)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_pzmergeinstancesfromabranch_d38d6e1845fc87ee21a078e7df783afd.step2_circum0(ra_action_pzmergeinstancesfromabranch_d38d6e1845fc87ee21a078e7df783afd.java:324)
at com.pegarules.generated.activity.ra_action_pzmergeinstancesfromabranch_d38d6e1845fc87ee21a078e7df783afd.perform(ra_action_pzmergeinstancesfromabranch_d38d6e1845fc87ee21a078e7df783afd.java:86)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)
at com.pegarules.generated.activity.ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.step3_2_circum0(ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.java:466)
at com.pegarules.generated.activity.ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.step3_0_circum0(ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.java:359)
at com.pegarules.generated.activity.ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.perform(ra_action_pzmergeinstances_603a8fb2b4e4db11e89627d3a0769e06.java:115)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.flow.ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.RunTaskActivity(ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.java:3794)
at com.pegarules.generated.flow.ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.Task_Utility2_circum0(ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.java:1833)
at com.pegarules.generated.flow.ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.perform(ra_action_pzmergeinstances_df0fd509594ce9d545fae4ddc9b85e35.java:642)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.StartFlow07_10_17(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:167)
at com.pegarules.generated.StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.invoke(StartFlow_071017_Y4eQmw0Y6OuVgKxzwKWCmA.java:76)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:9000)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_procom_flow.StartFlow(pega_procom_flow.java:639)


Steps to Reproduce



Merge the branch ruleset to a target ruleset.


Root Cause



The error is displayed by the pzRuleSetNameIsABranch because the pyRequiresRuleSetVersionElement property value contained invalid symbols. This must be 'Rulesetname:Version', however, this function split the rulesetname from the ':' symbol.



In the branch ruleset, the Application Validation is selected. However, on switching to the Ruleset Validation mode, an invalid character is included in the version field.
Additionally, Pega 7.1.9 allows saving rulesets with incorrect values. This is a bug in Pega 7.1.9 and is resolved in later versions.



Resolution



Perform the following local-change:
  1. Delete the invalid characters manually from the ruleset prerequisite field.
  2. Switch to Application Validation mode.
  3. Resave the ruleset form.

​​​​​​​
Suggest Edit

Published March 22, 2018 - 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