Error messages / NACHA file validator
The batch debit or credit total does not match the entries
What the validator shows
This is the finding for the sample file nacha-error-batch-totals.ach:
- ErrorThe batch debit or credit total does not match the entriesLine 6 · Batch Control (8) · Total Credit Entry Dollar Amount · positions 33-44
- Expected
- 000000504575 ($5045.75)
- Found
- 000000494575
822000000302970000360000000000000000004945751990000001·························990000010000001
Spaces are shown as dots so that they can be counted.
A message of the NACHA file validator, reported as an error. The batch control totals in a NACHA file must equal the sum of the entries. Where the totals are, how they are built, and what puts them out of balance.
Where the totals are
Each Batch Control record (type 8) carries two 12-digit totals in cents, without a decimal point: total debits in positions 21-32 and total credits in positions 33-44. The File Control record (type 9) repeats them for the whole file in positions 32-43 and 44-55.
How they are built
Add the amounts (positions 30-39) of the Entry Detail records. Whether an amount is a debit or a credit comes from the entry's transaction code in positions 2-3: 22, 32, 42 and 52 are credits (money to the receiver), 27, 37 and 47 are debits. Prenotifications (23, 28, 33, 38) carry zero.
In the sample file the first entry was changed from $1,850.00 to $1,950.00 after export. The entries now add up to $5,045.75 in credits, the Batch Control record still says $4,945.75, and because the file total was built from the batch it is wrong too. The validator reports both records.
What puts a batch out of balance
- An amount was edited, or an entry added or removed, after the file was created.
- A debit was counted as a credit because of a wrong transaction code, or amounts were written in dollars instead of cents.
- The software totalled an offsetting entry that is not in the file (or the other way round).
"Out of balance" has a second meaning
Some banks require a balanced file, with an extra entry that debits your own account for the total of the credits. That is a bank requirement, not part of the format, and this validator does not report its absence. This message is only about control totals that disagree with the entries above them.
How to fix it
Change the payment in the originating system and export again, so that the amounts, both levels of totals, the entry count and the entry hash are rebuilt together.
Check your own file
Drop your file into the NACHA file validator. It reports problems and does not change the file.