Skip to main content
Kofax

Error 4022 Kdolib Error closing data reader Index was out of range Must be non-negative and less than the size of the collection when creating a Batch

8791

QAID # 8791 Published

Question / Problem:

How can I resolve a

“[4022] Kdolib: Error closing data reader: Index was out of range. Must be non- negative and less than the size of the collection”

error when creating a Batch?

Answer / Solution:

You may receive a 

"[4022] Kdolib: Error closing data reader: Index was out of range. Must be non- negative and less than the size of the collection”

error when creating a Batch if you have corruption on your database files. This error can also occur if you have Batch database (.mdb) files left over on a client station that failed to get deleted when a previous batch was closed.

To resolve:

  1. Shut down all Ascent Capture modules and services.
  2. On the server, go to Start ¦ Run ¦ dbutil.exe.
  3. On the Repair and Compact tab, choose ‘Select All’
  4. Choose ‘Repair’. When the repair is finished, choose ‘Compact’.
  5. After the compact is finished, close dbutil.exe and reboot the server.

When the server comes back up, try creating a new Batch on the station that initially reported the error.

If the error still persists, continue with the steps below:

  1. On the station reporting the error, close all Ascent modules and services.
  2. Open Windows Explorer and browse to C:\Program Files\Ascent\BatchDB.
  3. If there are any .mdb files listed here, delete them.
  4. Reboot the workstation and try again.

Applies to:

Product Version
CAPTURE 10.0
  10.1
  10.2
  11.0