Question / Problem:
In Kofax Capture Administration Module when publishing a Batch Class a similar error message is shown:
Publishing aborted: <YOR BATCH CLASSNAME>
 KFRS: The system cannot find the file specified.
[CopyFile("C:\ProgramData\Kofax\Capture\pubtypes\Scripts\00000003.sbx,C:\ProgramData\Kofax\Capture\pubtypes\00000045.TMP\Scripts\00000003.sbx")] [Export(0); AscentCaptureSetup(1); Script(1)]
There were 0/1 successfully published batch classes.
Answer / Solution:
Cause: A SBL script was created in Batch Class properties, Advanced Tab, Rubber Band OCR, Edit -> Recognition profiles. The pathes of the scripts for copying the SBL script to AdminDB folder are not correcly used.
Manually copy the Compiled SBX file, in our example "C:\ProgramData\Kofax\Capture\pubtypes\Scripts\00000003.sbx", to the PubTypes directory from the AdminDb/Scripts directory then, in our example "C:\ProgramData\Kofax\Capture\pubtypes\00000045.TMP\Scripts\00000003.sbx". Make sure to close the Windows Explorer folder under pubtypes. Republishing the Batch Class finishes without error.