Support Article
Unable to Export Archive from Command Line
SA-19142
Summary
When exporting archive using command line utility by setting the necessary values in prpcUtils.properties and prpcUtils.xml. Though the Export is successful but the exported archive does not contain required instances.
Only the instances of the class name provided in the export.classes.included are being included in the archive. All the rules which are in the provided Ruleset Version range [eg: export.startVersion=01-01-01,export.endVersion=01-03-20 ] are not included in the archive files.
Though there are more than 100 rules in the provided ruleset version range, only 15 instances which belong to the class name provided in the export.classes.included are included in the archive.
Error Messages
Not Applicable.
Steps to Reproduce
1. Edit prpcUtils.properties with export.classes.included = <work class name>,export.startVersion=01-02-01, export.endVersion=01-03-20
2. Run using command line by giving 'prpcUtils.bat export'
3. Create zip or jar file, import in designer studio:
DesignerStudio > Application > Distribution > Import
4. Check under Rule classes.
Root Cause
While exporting, instead of 'rule-' customer is giving work class name. After modifying export.classes.included to 'Rule-', required rules are exporting but in addition to that non-versioned rules also exporting.
Resolution
For exporting rules, export.classes.included must be 'Rule-'.
To avoid exporting non-versioned rules created enhancement request to implement.
An enhancement request has been created for consideration by Pega Product Management.
Documentation bug has been raised (BUG-239071) for below PDN link which user followed to export rules.
https://pdn.pega.com/how-import-or-export-archive-command-line
Published April 27, 2016 - 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.