Error messages / NACHA file validator
A record is not 94 characters long
What the validator shows
This is the finding for the sample file nacha-error-record-length.ach:
- ErrorA record is not 94 characters longLine 1 · File Header (1)
- Expected
- 94 characters
- Found
- 77 characters (were trailing spaces removed?)
101·990000026·9900000132610090830A094101SAMPLE·DESTINATION·BANKSAMPLE·COMPANY
Spaces are shown as dots so that they can be counted.
A message of the NACHA file validator, reported as an error. Every record in a NACHA file must be exactly 94 characters. Causes of short or long lines and how to find them.
The rule
A NACHA file is a fixed-width file: every record is exactly 94 characters, whatever its type, and fields are found by position, not by a separator. The File Header says so itself: positions 35-37 hold the record size, 094.
Why a record comes out shorter
- Trailing spaces were removed. The File Header ends with an optional eight-character reference code and the File Control record with 39 reserved blanks. A text editor set to "trim trailing whitespace", an e-mail system or a file transfer in text mode strips them. The sample file shows this: line 1 is 77 characters and the File Control record 55.
- A field was typed shorter than its width without padding, for example a company name that is not filled to 16 characters.
Why a record comes out longer
- A name or description is longer than its field and pushed everything after it to the right. Look at the positions the validator marks: the trace number at the end of an entry will no longer be 15 digits.
- A tab character was inserted. It counts as one character in the file but looks like several on screen.
- A character outside plain ASCII (an accented letter, a curly quote) was saved as two or three bytes. See the separate message about characters that are not allowed.
How to fix it
Export the file again and send it without opening it in an editor. If you must look inside, use one that shows line lengths and does not trim whitespace. If your software writes short records by itself, show the vendor the line numbers from the report.
Check your own file
Drop your file into the NACHA file validator. It reports problems and does not change the file.