Error messages / ABA file validator
A record is not 120 characters long
What the validator shows
This is the finding for the sample file aba-error-record-length.aba:
- ErrorA record is not 120 characters longLine 1 · Descriptive (0)
- Expected
- 120 characters
- Found
- 80 characters (were trailing spaces removed?)
0·················01TST·······SAMPLE·COMPANY·PTY·LTD····301500PAYROLL·····131026
Spaces are shown as dots so that they can be counted.
A message of the ABA file validator, reported as an error. Every line of an ABA (Cemtex) file must be exactly 120 characters. Why lines come out short or long and how to find the cause.
The rule
An ABA file is fixed-width. The Descriptive record (type 0), every Detail record (type 1) and the File Total record (type 7) are each exactly 120 characters, and the bank reads every field by its position in the line. Westpac, NAB and BOQ all state the length in their file format guides.
Short records
The Descriptive record ends with 40 blanks and so does the File Total record. Anything that trims spaces from the ends of lines shortens exactly those two records to 80 characters while the Detail records, which end in the withholding tax digits, stay intact. That is the pattern in the sample file, and it is what an e-mail program, a text editor or a copy and paste can do to a file.
Long records
- An account title longer than 32 characters or a lodgement reference longer than 18 that was not cut to size.
- An accented letter or a "smart" apostrophe saved as more than one byte; see A record contains characters that are not allowed in an ABA file.
How to fix it
Export the file again and upload it without opening and saving it. To inspect it, use an editor that does not trim trailing whitespace. If the package itself writes short lines, give its support the line numbers from the report.
Check your own file
Drop your file into the ABA file validator. It reports problems and does not change the file.