Support Article
Upgrade to 8.3.2 fails-Failure while generating cleanup scripts
SA-104756
Summary
Unable to upgrade Pega Platform 7.4 to Pega Platform 8.3.2 using the Command Line. Prior to running the upgrade, the cleanup.sh script is run to generate the Data Definition Language (DDL) to clean up the old rulesets from the system.
Error Messages
Caused by: com.pega.pegarules.cleanscript.exception.CleanScriptException: Failed to find application RuleApplication(name=PegaRULES, version=8)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator.getApplicationRuleSets(CleanupScriptGenerator.kt:172)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator.access$getApplicationRuleSets(CleanupScriptGenerator.kt:34)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator$getShippedRuleSets$1.invoke(CleanupScriptGenerator.kt:146)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator$getShippedRuleSets$1.invoke(CleanupScriptGenerator.kt:34)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:277)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:702)
at kotlin.sequences.SequencesKt___SequencesKt.toSet(_Sequences.kt:743)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator.getShippedRuleSets$prdeploy(CleanupScriptGenerator.kt:155)
at com.pega.pegarules.cleanscript.CleanupScriptGenerator.generateScript(CleanupScriptGenerator.kt:58)
at com.pega.pegarules.cleanscript.CleanupScriptTask.executeDBTask(CleanupScriptTask.kt:47)
... 28 more
Steps to Reproduce
Run the cleanup.sh script before running the Upgrade to Pega Platform 8.3.2.
Root Cause
An error or omission in product documentation.
Refer to the Product documentation, Running cleanup.sh script (page 14 of https://community.pega.com/knowledgebase/documents/pega-platform-83-upgrade-guide-websphere-and-oracle
Documentation BUG-550104 is created to clarify that the Cleanup script must be run after the upgrade is completed.
Resolution
Perform the following local-change:
- Run the upgrade to Pega Platform 8.3.2.
- Execute the cleanup.sh script after the upgrade is complete.
Published April 14, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.