Error messages / NACHA file validator
The entry hash does not match
What the validator shows
This is the finding for the sample file nacha-error-entry-hash.ach:
- ErrorThe entry hash does not matchLine 6 · Batch Control (8) · Entry Hash · positions 11-20
- Expected
- 0297000036
- Found
- 0297000037
822000000302970000370000000000000000004945751990000001·························990000010000001
Spaces are shown as dots so that they can be counted.
A message of the NACHA file validator, reported as an error. What the NACHA entry hash is, how to calculate it by hand, and why a batch or file control record stops matching its entries.
What the entry hash is
The entry hash is a checksum, not an amount. In every Batch Control record (type 8) it sits in positions 11-20, and in the File Control record (type 9) in positions 22-31.
- Batch level: add up the first eight digits of the receiving bank's routing number (positions 4-11) of every Entry Detail record (type 6) in the batch. The ninth digit, the check digit, is left out. Addenda records are not included.
- File level: add up the entry hashes of all batches.
- If the sum has more than ten digits, keep only the last ten. If it has fewer, fill with zeros on the left.
Example from the sample file: the three entries go to 99000011, 99000012 and 99000013. The sum is 297000036, written as 0297000036. The sample's Batch Control record says 0297000037, so the validator reports the record, the positions and both values.
Why it stops matching
- An entry was added, deleted or had its routing number corrected in a text editor after the file was exported. The control records still describe the old content.
- The software summed all nine digits of the routing number instead of the first eight, or did not cut the sum to ten digits.
- Two files were joined by hand and the File Control record of the first was kept.
How to fix it
Do not type a new hash into the file: the control record and the entries do not agree because the file was changed after export, or the export is wrong. Correct the payment in the system that created the file and export again. If the export itself writes a wrong hash, the validator's "expected" value tells the vendor what the field should hold. An entry that changed usually also breaks the batch totals.
Check your own file
Drop your file into the NACHA file validator. It reports problems and does not change the file.