search cancel

Patch installation failed with error code 87

book

Article ID: 230022

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Patch Manager

Issue/Introduction

Installation of some UPM Patches could return an error with following message in output :


No prerequisites have been found for this patch.
 
Continuing execution....
[Executing...] cmd /C wusa.exe Win10-Server2016-KB5007192-x64-1607.msu /quiet /norestart /log:C:\Windows\TEMP\ipEvent.evtx
[Executing...] cmd /C WEVTUtil query-events C:\Windows\TEMP\ipEvent.evtx /lf:true /format:text /q:"*" > C:\Windows\TEMP\ipEventOutput.log
Patch installation failed with error code 87.
 
---------------- EVENT LOG INFORMATION ----------------

Environment

Client Automation - All Versions

Cause

This problem could occur if there is a file C:\Windows\TEMP\ipEvent.evtx.dpx on the machine with an invalid format.

Resolution

Delete the file C:\Windows\TEMP\ipEvent.evtx.dpx

This could be done using an Asset Job.

 
1- In DSM Explorer go under Jobs/Asset Jobs.
Right click on Asset Jobs and select Job type="Command"
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=Hdv3SjJfc34IVbOneKwH+w==
 
 
2- Click Next and put a Job Name (ex: Delete ipEvent.evtx.dpx)
 
3- Click Next and enter this in command text :
 
IF EXIST "%windir%\temp\ipEvent.evtx.dpx" del /F /Q "%windir%\temp\ipEvent.evtx.dpx"
 
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=h35Tx7IFVOQ21Rg6/KdlZQ==
 
 
4- Click Next and click on "Set Scheduling button"
Select "Run Only Once"
 
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=vMWhqVoezBhrzog6NzZ1Ww==
 
5- Click on Miscellaneous tab and make sure that option "This job is allowed to run unattended" is checked :
 
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=CB9t8TlrSUpUT6YlR5jlZA==
 
6- Click OK and Finish, the job should appear under My Asset Jobs folder
 
7- Go under Computers and Users/All Computers/{Group Details}/Jobs/Asset Jobs
and click on 'Link Existing Asset Job"
 
https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=sCP26jO4D6rQ05rGszHI7A==
 
 
8- Select the job "Delete ipEvent.evtx.dpx" and click OK
This job is attached to all computers.
 
So the next time AM Agent is executed on the machines, the file %windir%\temp\ipEvent.evtx.dpx will be deleted