Skip to main content
Kofax

Kofax TotalAgility - "Sequence contains no matching element" error when adding a row to a capture table

Applies to

  • TotalAgility 7.6
  • TotalAgility 7.7

Issue

When using an AddRow action to add a row to a capture table, we get the below error on screen.

clipboard_e8c8fa41d217723daa26a8090c4bd7ee6.png

The below error will be written in the application event log

Exception occurred: System.InvalidOperationException: Sequence contains no matching element

Cause

This error occurs when a column has been removed from the table in the Extraction Group.  We then regenerate the form which removes the column from the table.  However, the AddRow action still references the deleted column.  The AddRow action is not injected into the form during creation or regeneration, as such it is left untouched during a regeneration.

Solution

The solution is to recreate the AddRow action after regenerating the form.