Activate the table entry or select another table entry that is already active

If the table entry is marked as inactive and you are trying to commit a batch, recreate the batch from scratch.

OR

If there are no payments being applied to pledges, unmark the Automatically apply gifts to pledges and recurring gifts checkbox on the commit screen.