Adding a package version in Microsoft Application Virtualization returns error 0x8007012F

Removing and then adding the same package version in the Microsoft Application Virtualization console fails and returns error 0x8007012F.
More information
When an App-V v5 package version is added, the package files are created in %programdata%\App-V\{PackagID}\{VersionId}. When the package version is removed the package files in %programdata%\App-V are also removed. Any files that the App-V v5 client is unable to remove are marked for deletion at the next system restart.

 If all of the package version files were successfully removed then the same package version can be added immediately without a system restart, however if any of the files could not be removed then adding the same package version that was just deleted returns error 0x8007012F. This is by design.

To work around this issue, reboot the computer before adding the same package version again. The system restart will complete the removal of the package version after which the same package version can be successfully added again.

This scenario is most likely to occur in a test environment as in production there's no reason to remove a package version and then add the same package version again. However, if this were to occur in production and if a system restart cannot be performed, there is an alternative workaround that does not require a system restart. As an alternative, you can create a new version of the same package. To do this, open the package in the Sequencer and then save it. The new package version will not be affected by the partially deleted state of the prior version and so it can be added without restarting the system.

NOTE If this problem occurs in a full infrastructure scenario then at the next "Refresh" this error will be logged in the App-V Client Admin event log.
App-V v5 appv 0x8007012F add-appvclientpackage remove-appvclientpackage refresh
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2780304 - Last Review: 12/11/2012 23:14:00 - Revision: 1.0

Microsoft Application Virtualization 5.0 for Terminal Services, Microsoft Application Virtualization 5.0 for Windows Desktops

  • KB2780304