KB-2067 Automated Versioning Manager (AVM) fails to add contents of patches generated using the compare app feature if appianObjectsRepoPath is set

Symptoms

When using the Automated Versioning Manager with appianObjectsRepoPath set, the below error is thrown when trying to addContents of a patch exported via the Compare App feature:

Package containing multiple patches detected - Updating Application XML YYYY-MM-DD HH:MM:SS,XXX - There was an error completing the selected operation. Additional details will be logged.
Details of error:
java.io.FileNotFoundException: <REPO_HOME>\application_files\patches.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at com.appiancorp.ps.automatedversioning.helper.UpdateAppXmlHelper.buildDocument(UpdateAppXmlHelper.java:181)
        at com.appiancorp.ps.automatedversioning.helper.UpdateAppXmlHelper.updateApplicationXmlsWithCrossAppPatchContents(UpdateAppXmlHelper.java:136)
        at com.appiancorp.ps.automatedversioning.VCSAndBuildController.addContents(VCSAndBuildController.java:94)
        at com.appiancorp.ps.automatedversioning.AutomatedVersioningManager.main(AutomatedVersioningManager.java:116) 

Cause

This issue has been reported to the Appian Product Team. The reference number for this issue is AN-145374.

Action

  1. When importing a patch, ensure either the UUID or the application name is set in the version-manager.properties file.
  2. Extract the patch.zip and delete the patch.xml file located in the <REPO_HOME>\application_files\ directory.
  3. Compress the patch.zip again and run the version-application.bat (.sh) script.

Affected Versions

This article applies to Appian 19.3 and later.

Last Reviewed: January 2020

Related
Recommended