Client Automation - Online CIC - Export Patch Error:the number of selected patches has exceeded the export limit

Document ID : KB000118174
Last Modified Date : 24/10/2018
Show Technical Document Details
Issue:
On Online CIC machine (connected to Internet but not to mdb database), the export of a patch is failing with error "Error: The number of selected patches has exceeded the export limit. The maximum capacity available to export is 0 patches."

Example :

In C:\Program Files (x86)\CA\SC\CIC\logs\cicmanager.log lines like these could be seen :

 
2018-10-24 09:20:27,900 [ExportPatchTask] DEBUG [com.ca.sccc.cicmanager.ExportManager] - ExportedSize status: 5038, ExportLimit: 5000
2018-10-24 09:20:27,900 [ExportPatchTask] ERROR [com.ca.sccc.cicmanager.ExportManager] - Export failed while processing content(baseline + patches). 
2018-10-24 09:20:27,900 [ExportPatchTask] ERROR [com.ca.sccc.cicmanager.ExportManager] - Error: The number of selected patches has exceeded the export limit. The maximum capacity available to export is 0 patches.  
2018-10-24 09:20:27,900 [ExportPatchTask] INFO  [com.ca.sccc.cicmanager.ExportPatchTask] - Export Patch(es) Processing Complete
2018-10-24 09:20:27,900 [ExportPatchTask] DEBUG [com.ca.sccc.cicmanager.ExportPatchTask] - Export Patch Analysis Task Ends
Cause:
This error occurs when number of items in file C:\Program Files (x86)\CA\SC\CIC\EXP\CIC_Offline_Export.xml exceeds the maximum limit of 5000 items (item could be cic_offline_baseline_files and offline_download_file.)


 
Resolution:

Number of items in file CIC_Offline_Export.xml should decrease and be lower than 5000.

1- Edit file C:\Program Files (x86)\CA\SC\CIC\EXP\CIC_Offline_Export.xml with a text editor

2- Remove sections <offline_download_file/> for old downloaded patches. Use value of path attribute to find old patches.

Example :
The patch below has been downloaded on 31 August 2017 as path value is "\Patches\20170831104551..."

           <offline_download_file
                checksum="d8d1703c53aa1627df7fc8bda8c88842"
                modified-date="2017-08-31 09:23:01 AM IDT"
                name="NDP45-KB2978128-x64.exe"
                path="\Patches\20170831104551\9ae6a3cd-f619-47fe-b0f9-e5eff5dd567f\"
                size="1362360" uuid="9ae6a3cd-f619-47fe-b0f9-e5eff5dd567f"/>

This section could be removed as it is old.

A research using strings like 'Patches\2017' could be done to find all old patch sections