Troubleshooting Capture locked file issues during Export

During Export, you may encounter intermittent errors stating: The process cannot access the file '<<filename>>' because it is being used by another process.

This typically occurs when an anti-virus program is scanning the file or directory that the Export is writing to.  

 

To resolve/troubleshoot:

- Ensure Kofax directories and the Temp directory have been added to the anti-virus exclusions list (see https://knowledge.kofax.com/bundle/z-kb-articles-salesforce4/page/19549.html ).  Note: some Windows Defender settings require a Windows restart before taking effect.  The output directory where the Export writes to should also be added to the exclusions list on the Kofax server AND on the server where the directory itself resides.

- Some customers have found that the error started happening when advanced threat protection was enabled. Adding process and directory exclusions to Microsoft Defender as described at https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/configure-exclusions-microsoft-defender-antivirus?view=o365-worldwide resolved the issue.

- If these measures are in place, and the issue is still occurring, we've found the ProcessMonitor program that is part of the SysInternal Suite from Microsoft useful to see what process is locking the files. ProcessMonitor will log what processes access the files, but requires some filtering as it will output a significant amount of data.  To narrow in on the relevant data, add a filter to limit the data only to operations on the directory(ies) that are having locking problems.  Be sure to make the filter broad enough so that in includes operations on both the directory and specific files. 

 

SysInternals Suite: https://learn.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite  ProcessMonitor: https://learn.microsoft.com/en-us/sysinternals/downloads/procmon