Appian version manager not working as expeced.

I am trying to use Appian version manager as given in Appian documentation.

https://community.appian.com/w/the-appian-playbook/198/deployment-automation#Automated_Versioning_Manager

I am trying to use -action as addContents and it is giving me an error as below

"java.lang.IllegalStateException: Error: the Zip file cannot be committed to the respository. The Zip file contains one or more application XML file and version toool has been invoked with paramameter -UUID signaling it should be patch"

 

I am using below command and also updated attributes/parameter in version-manager.properties file.

version-application.bat  -action addContents -vc_username (VC_USERNAME) -vc_password (VC_PASSWORD) -application_path "C:\\Users\\43987901\\Downloads\\Country Flag Icons.zip" -commit_message “Commit by@439879

below are parameter defined in version-manager.properties as well.

action=addContents

commitMessage="Commit by@439879"

localRepoPath=C:\\Developer_Appian

repoUrl=https://alm-github.uk.hsbc/HSBC-GST/Developer_Appian

uuid=_a-0000de51-e49e-8000-9ba2-011c48011c48_16348

vcPassword=GIT_Username

vcUsername=GIT_password

versionControlType=GIT
repoUrl=https://alm-github.systems.uk.hsbc/HSBC-GST/Developer_Appian

Can anyone please let me know probably cause for the above error....

Thanks in advance

  Discussion posts and replies are publicly visible

  • Hi,

    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.
  • 0
    A Score Level 1
    in reply to bradc
    Thanks bradc for response, I have not used UUID as parameter and i am making patch of 2 objects from one of Appian Application now and still getting the same error message.
  • If you are creating a patch, you should to specify the UUID of the destination application.  If you are exporting the entire application, you should not specify a UUID.

  • 0
    A Score Level 1
    in reply to bradc
    Ok Thanks bradc, as per suggestion i have used below command
    version-application -action addContents -vc_username (VC_USER) -vc_password (VC_PASSWORD)-application_path "C:\\Users\\43987901\\Downloads\\Country Flag Icons - Patch - 2018-03-13_1251_ASEAN_HSBCUK_20180313.zip" -commit_message “Adding account executive record” -uuid _a-0000de51-e49e-8000-9ba2-011c48011c48_16348

    but now i am getting below error.
    ERROR com.appiancorp.ps.automatedversioning.helper.UpdateAppXmlHelper - Error: the application _a-0000de51-e49e-8000-9ba2-011c48011c48_16348 does not exist in the repository. The file C:\Developer_Appian\application_files\application\_a-0000de51-e49e-8000-9ba2-011c48011c48_16348.xml could not be found. Exiting without committing to source control.

    I have branch with same name as Appian application. What else i need to create for this?
  • You will first need to commit your full application (not a patch) and exclude the UUID from your parameters. This should initialize your repo for further commits using patches (and you will need to then include the UUID in your parameters going forward). The branch name does not need to match your application name.
  • 0
    A Score Level 1
    in reply to bradc
    Hi bradc
    You will first need to commit your full application (not a patch) and exclude the UUID from your parameters -> I have commited the in git repository including the branch and then ran command as mentioned in above my comment excluding -uuid paramemeter. I got below error
    2018-03-15 15:15:59,874 [main] INFO com.appiancorp.ps.automatedversioning.AutomatedVersioningManager - VersionManagerProperties:
    [vcUsername:43987901],
    [vcPassword:***],
    [commitMessage:“Adding],
    [action:addContents],
    [applicationPath:C:\\Users\\43987901\\Downloads\\Country Flag Icons - Patch - 2018-03-13_1251_ASEAN_HSBCUK_20180313.zip],
    [adminConsolePath:value not provided],
    [ddlPath:value not provided],
    [ddlDs:value not provided],
    [uuid:value not provided],
    [applicationName:value not provided],
    [startHash:value not provided],
    [endHash:value not provided],
    [packagePath:value not provided],
    [versionControlType:GIT],
    [repoUrl:https://alm-github.systems.uk.hsbc/HSBC-GST/Developer_Appian],
    [localRepoPath:C:\Developer_Appian],
    [branchName:value not provided],
    [appianObjectsRepoPath:value not provided],
    [noUpdate:true],

    2018-03-15 15:16:09,835 [main] INFO com.appiancorp.ps.automatedversioning.GitObject - Local repo updated successfully
    2018-03-15 15:16:10,140 [main] INFO com.appiancorp.ps.automatedversioning.VCSAndBuildController - Unzipping application to repository
    2018-03-15 15:16:10,236 [main] INFO com.appiancorp.ps.automatedversioning.VersionUtils - Successfully extracted file C:\Developer_Appian\application_files\content/_a-0000de2c-7109-8000-9ba2-011c48011c48_6610/file.png
    2018-03-15 15:16:10,239 [main] INFO com.appiancorp.ps.automatedversioning.VersionUtils - Successfully extracted file C:\Developer_Appian\application_files\content/_a-0000de2c-7109-8000-9ba2-011c48011c48_6610.xml
    2018-03-15 15:16:10,242 [main] INFO com.appiancorp.ps.automatedversioning.VersionUtils - Successfully extracted file C:\Developer_Appian\application_files\META-INF/MANIFEST.MF
    2018-03-15 15:16:10,246 [main] INFO com.appiancorp.ps.automatedversioning.VersionUtils - Successfully extracted file C:\Developer_Appian\application_files\META-INF/export.log
    2018-03-15 15:16:10,335 [main] ERROR com.appiancorp.ps.automatedversioning.AutomatedVersioningManager - There was an error completing the selected operation. Additional details will be logged.
    2018-03-15 15:16:10,337 [main] ERROR com.appiancorp.ps.automatedversioning.AutomatedVersioningManager - Details of error:
    java.lang.IllegalStateException: Error: the zip file cannot be committed to the repository. The zip file does not contain a application xml file and the versioning tool has not been invoked with the parameter -UUID signaling that it should be a full app.
    at com.appiancorp.ps.automatedversioning.helper.RepoHelper.checkAppPatchZipIntegrity(RepoHelper.java:145)
    at com.appiancorp.ps.automatedversioning.VCSAndBuildController.addContents(VCSAndBuildController.java:67)
    at com.appiancorp.ps.automatedversioning.AutomatedVersioningManager.main(AutomatedVersioningManager.java:106)
  • Are you able to attach a screenshot of the zip file contents? I would like to see just the folders contained in the zip file your are attempting to commit.
  • 0
    A Score Level 1
    in reply to bradc

    Hi bradc

    Tried to upload it, please check and let me know in case need anything from my side. Thanks