Skip to main content
January 6, 2022
Question

Appian version manager error while "addContents"

  • January 6, 2022
  • 2 replies
  • 0 views

Hi Team,

When I try to execute below command, I see an error. Can anyone help me on below.

command:

sh version-application.sh -action addContents -vc_username username -vc_password testPassw0rd -application_path "C:/Users/test-version-manager/tool_1645.zip" -commit_message “Automated Version Manager”

version-manager.properties

versionControlType=GIT
repoUrl=bitbucket-prod.company.com/test-version-manager.git
localRepoPath=C:/Users/test-version-manager
branchName=develop
commitMessage= "Appian Versioning Manager"
applicationPath=C:/Users/test-version-manager/tool_1645.zip  # THIS IS FULL PACKAGE
applicationName=Tool_1645

Error:

java.lang.IllegalStateException: Error: the zip file cannot be committed to the repository. The zip file contains one or more application xml files and the versioning tool has been invoked with the parameter -UUID signaling that it should be a patch.
at com.appiancorp.ps.automatedversioning.helper.RepoHelper.checkAppPatchZipIntegrity(RepoHelper.java:183)
at com.appiancorp.ps.automatedversioning.VCSAndBuildController.addContents(VCSAndBuildController.java:101)
at com.appiancorp.ps.automatedversioning.AutomatedVersioningManager.main(AutomatedVersioningManager.java:154)

2 replies

mohammeds0006
January 7, 2022

Hello,

It appears from the error that you exported the entire application rather than selecting objects within the application to create a patch. When you specify a UUID in the parameters, you should only be exporting a patch and not the entire application. If you would like to export the entire application, do not specify a UUID in your parameters.

January 7, 2022

Hi [mention:6ef0eecadc2049faac112f3183800f5b:e9ed411860ed4f2ba0265705b8793d05],
Thank you for your response. 

However, I did not provide any UUID parameters. Please see below command line and property file arguments. 

sh version-application.sh -action addContents -vc_username username -vc_password testPassw0rd -application_path "C:/Users/test-version-manager/tool_1645.zip" -commit_message “Automated Version Manager”

version-manager.properties

versionControlType=GIT
repoUrl=bitbucket-prod.company.com/test-version-manager.git
localRepoPath=C:/Users/test-version-manager
branchName=develop
commitMessage= "Appian Versioning Manager"
applicationPath=C:/Users/test-version-manager/tool_1645.zip  # THIS IS FULL PACKAGE
applicationName=Tool_1645