App-V app deployment failing with error code error code 0x87D0128F(-2016406897).

I have sequenced an application with the app-v 5 SP1 sequencer and deployed it with sccm.  When I go to install the application I get a failure with the failed message "The software change returned error code 0x87D0128F(-2016406897)."

The App Enforce Log contains these errors:

Running App-V command ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -ExecutionPolicy Bypass import-module 'C:\Program Files\Microsoft Application Virtualization\Client\AppvClient\AppvClient.psd1';  Add-AppvClientPackage -Path 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1.appv'  -DynamicDeploymentConfiguration 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1_DeploymentConfig.xml'] for the  machine	AppEnforce	6/19/2013 4:19:18 PM	3308 (0x0CEC)
    Executing Command line: "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -ExecutionPolicy Bypass import-module 'C:\Program Files\Microsoft Application Virtualization\Client\AppvClient\AppvClient.psd1';  Add-AppvClientPackage -Path 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1.appv'  -DynamicDeploymentConfiguration 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1_DeploymentConfig.xml' with system context	AppEnforce	6/19/2013 4:19:18 PM	3308 (0x0CEC)
    Process 2164 terminated with exitcode: 1	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)
Here is the error message generated by the process:
Add-AppvClientPackage : XML document could not be loaded because it is 
invalid. Please supply a valid XML document. Please consult AppV Client Event 
Log for more details.
Operation attempted: Configure AppV Package. 
AppV Error Code: 050009000A. 
Please consult AppV Client Event Log for more details.
At line:1 char:106
+ import-module 'C:\Program Files\Microsoft Application 
Virtualization\Client\Appv ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidResult: (:) [Add-AppvClientPackage], Clie 
   ntException
    + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientP 
   owerShell.AddAppvPackage
 
	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)
AppV command ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -ExecutionPolicy Bypass import-module 'C:\Program Files\Microsoft Application Virtualization\Client\AppvClient\AppvClient.psd1';  Add-AppvClientPackage -Path 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1.appv'  -DynamicDeploymentConfiguration 'C:\WINDOWS\ccmcache\k\Scilab 5.4.1_DeploymentConfig.xml'] failed with return code 1.	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)
AppVCommandUtil::RunAppVCommand() failed. (0x87d0128f)	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)
AppVManageClient5X::InstallAppVPackage() failed. (0x87d0128f)	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)
    CAppV5XHandler::InstallApp() failed. (0x87d0128f)	AppEnforce	6/19/2013 4:19:23 PM	3308 (0x0CEC)

Also in the Event Viewer this error shows up: 

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-AppV-Client" Guid="{E4F68870-5AE8-4E5B-9CE7-CA9ED75B0245}" /> 
  <EventID>8002</EventID> 
  <Version>1</Version> 
  <Level>2</Level> 
  <Task>20</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000002000</Keywords> 
  <TimeCreated SystemTime="2013-06-21T13:51:02.782071100Z" /> 
  <EventRecordID>8</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="2032" ThreadID="3716" /> 
  <Channel>Microsoft-AppV-Client/Admin</Channel> 
  <Computer>computer.lab.com</Computer> 
  <Security UserID="S-1-5-18" /> 
  </System>
- <EventData>
  <Data Name="Error">-1072897687</Data> 
  <Data Name="Reason">' Scilab Console' violates pattern constraint of '[^\s]|([^\s].*[^\s])'. The element '{http://schemas.microsoft.com/appv/2010/deploymentconfiguration}Name' with value ' Scilab Console' failed to parse.</Data> 
  </EventData>
  </Event>

Has anyone seen this error before?


  • Edited by Misha Rudiy Friday, June 21, 2013 4:25 PM correction
June 21st, 2013 4:24pm

After some more investigating it appears that there was a problem with one of the shortcuts.  The referenced shortcut had a space in front of the name for some reason. I re-sequenced the application and fixed the shortcut.  Everything worked fine after that.
  • Marked as answer by Misha Rudiy Friday, June 21, 2013 4:56 PM
Free Windows Admin Tool Kit Click here and download it now
June 21st, 2013 4:56pm

I have run into this error several times with Office 2010 apps in App-V 5 on VDI test machines and it is always the execution policy in PowerShell and Enabling Packaging Scripts.  Once those are set it works.

Set-AppvClientConfiguration -EnablePackageScripts $true

June 4th, 2015 1:49pm

I have run into this error several times with Office 2010 apps in App-V 5 on VDI test machines and it is always the execution policy in PowerShell and Enabling Packaging Scripts.  Once those are set it works.

Set-AppvClientConfiguration -EnablePackageScripts $true

Free Windows Admin Tool Kit Click here and download it now
June 4th, 2015 1:49pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics