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

Commandline import 7.1 does not maintain order on import

SA-5947

Summary



When importing the rules via commandline tool the order of the zip files is not maintained.

Error Messages



No error, but we are concerned about ruleset prerequisites.


Steps to Reproduce



prpcUtils.sh import --archivePath /apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/Pega-BIX-All.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/BankShared-All-06-08-01.jar,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/BankSharedDataOE-All-06-08-01.jar,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/BankSharedPortalSSO-All-06-08-01.jar,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestRules-01-01-01.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestRules-01-01-02.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestRules-01-01-03.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestRules-01-01-04.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestData-01-01-02.jar,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestRules-01-01-05.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115AttestData-01-01-05.jar,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ECWSSO-01-01-01.zip,/apps/deployments/ecwrulesvR_trunk_20150106_01/ruleswork/exportfiles/ER115/ER115ECWAccessGroups-01-01-01.zip


This is the order from the line above.
Pega-BIX-All.zip
BankShared-All-06-08-01.jar
BankSharedDataOE-All-06-08-01.jar
BankSharedPortalSSO-All-06-08-01.jar
ER115AttestRules-01-01-01.zip
ER115AttestRules-01-01-02.zip
ER115AttestRules-01-01-03.zip
ER115AttestRules-01-01-04.zip
ER115AttestData-01-01-02.jar
ER115AttestRules-01-01-05.zip
ER115AttestData-01-01-05.jar
ECWSSO-01-01-01.zip
ER115ECWAccessGroups-01-01-01.zip



This is the order from thelog attached.

BankShared-All-06-08-01.jar
BankSharedDataOE-All-06-08-01.jar
BankSharedPortalSSO-All-06-08-01.jar
ER115AttestRules-01-01-01.zip
Pega-BIX-All.zip
ER115AttestRules-01-01-02.zip
ER115ECWAccessGroups-01-01-01.zip
ER115AttestData-01-01-02.jar
ER115AttestRules-01-01-03.zip
ER115AttestRules-01-01-04.zip
ECWSSO-01-01-01.zip
ER115AttestRules-01-01-05.zip
ER115AttestData-01-01-05.jar


Root Cause



Import rules (zip files) via command line.

Resolution



ImportUtility does sort the input files by order of entry timestamps inside the archive. In other words, it opens each zipfile, looks at the timestamp on the records, then sorts the list of files based on the timestamp of the records inside of them. It then considers earliest the first. A full sort is done in the ImportUtility code to reorder the archives according to timestamp on records . That way the oldest (earliest) records get imported first and the most recent (latest) records get imported last.
 
Suggest Edit

Published January 31, 2016 - 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