KdoLib 4025 Cannot Seize Semaphore It was Previously Locked

Article taken from Kofax KB: https://knowledge.kofax.com/Capture/New_Articles/KdoLib_4025_Cannot_Seize_Semaphore_It_was_Previously_Locked

Issue


The Remote Synchronization Agent (RSA) is reporting an error message similar to the foillowing, and fails to synchronize:


[4025] KdoLib: Cannot seize semaphore '<BatchClassName>' (1). It was previously locked by '<OtherBatchClassName>' LockID={82ca65e1-d71c-496c-b7c4-a14c1eb87889}

Solution


This can be resolved on the Remote Site and running the following SQL commands:


SELECT * from acsystem.dbo.xlock where abandoned = 1

This command will allow you to determine if there are abandoned locks that need to be removed.

To remove the abandoned locks, run the following command:


DELETE from acsystem.dbo.xlock where abandoned = 1

Please see link to SQL EZ Query Utility which allows you to run SQL queries without the need for the SA password: (Run the Utility in Administrator Mode)


(See attachment called kieasyquery2018.zip)

Please make a backup of the SQL Database before deleting records.

Please see link to application note for backup:


https://knowledge.kofax.com/@api/deki/files/1039/kofax_capture_10.1_related_application_note_documents_AppNote-Backup_and_Restore_a_Standard_Capture_Database.pdf?revision=2


Please contact Genus Support if you have additional questions or concerns: support@genustechnologies.com


This applies to:


Kofax Capture Versions 11.0 and 11.1