[ASC] Parameter(s) invalid while using Pack functionality of file-system-tool.jar

book

Article ID: 209359

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Package.Filesystem_PCK.AUTOMIC_FILESYSTEM_1_4_1+build.10282.zip

If you want to Pack a folder using file-system-tool.jar functionality the JOBP PCK.AUTOMIC_FILESYSTEM.PRV.JOB.PACK passes a parameter (the last one - "&UC4RB_ADD_TO_EXISING_ARCHIVE#") to much.

If you use it out of the box you will get the error

Parameter(s) invalid
Pack Command:
Pack <directory|filename> <archive name> <archive type>

 

Cause

This is related to the fact that one more parameter ist sent when it is not expected (add_to_existing_archive)

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

This issue does not occur anymore with Pack 1.5.0 which will be available with One Automation 21.0

Workaround : change the line below to remove the unexpected parameters :

Current line :


java -jar "&$AGENT_RESOURCES_CLIENT#file-system-tool.jar" file Pack "&UC4RB_DIR_FILE_PACK_INPUT#" "&UC4RB_ARCHIVE_FILE_NAME#" "&UC4RB_ARCHIVE_TYPE#" "&UC4RB_ADD_TO_EXISING_ARCHIVE#"

Fixed :

java -jar "&$AGENT_RESOURCES_CLIENT#file-system-tool.jar" file Pack "&UC4RB_DIR_FILE_PACK_INPUT#" "&UC4RB_ARCHIVE_FILE_NAME#" "&UC4RB_ARCHIVE_TYPE#"