Error messages / MT940 file validator
A balance date is not a valid date (YYMMDD)
What the validator shows
This is the finding for the sample file mt940-error-balance-date.sta:
- ErrorA balance date is not a valid date (YYMMDD)Line 19 · Field 62F (closing balance) · positions 7-12
- Expected
- A real date as YYMMDD
- Found
- 261305
:62F:C261305EUR7684,60
Spaces are shown as dots so that they can be counted.
A message of the MT940 file validator, reported as an error. Balance fields start with a mark, then a date as YYMMDD. How the validator checks the date, including 30 February and the 000000 of a first statement.
The format
A balance field (:60F:, :60M:, :62F:, :62M:, :64:, :65:) is written as one letter for credit or debit, six digits for the date as year, month and day, a three-letter currency and the amount. SWIFT's description says the date must be a valid date (error code T50). The validator checks that the six digits are a real calendar date, with the year read as 20 followed by the two digits.
What the finding shows
The "Found" line gives the six characters. In the sample for this page the closing balance carries 261305, which would be month 13.
An exception that is accepted
The German banks' specification allows 000000 as the date of the opening balance (:60F: or :60M:) of the first statement of an account. The validator accepts it in those two and in no other balance.
Why it happens
- Day and month swapped, or a day that does not exist, such as 30 February.
- A date written as DDMMYY or with separators.
How to fix it
Ask the bank for a corrected file. A wrong date also stops programs from placing the balance in time. This tool does not change dates.
Source: SWIFT, Category 9 Message Reference Guide (MT 940), and Die Deutsche Kreditwirtschaft, DFU Agreement Appendix 3 V3.8, chapter 8.
Check your own file
Drop your file into the MT940 file validator. It reports problems and does not change the file.
Other MT940 file messages
- This does not look like an MT940 file
- A mandatory field of the statement is missing or empty
- Fields are not in the order the MT940 format lists them
- A field 86 does not follow a field 61
- A field tag is not one the MT940 format lists
- A character is used that the SWIFT character set does not include
- A reference starts or ends with a slash, or has two slashes in a row
- Field 28C is not a statement number of up to 5 digits, optionally followed by / and a sequence number
- An amount is not digits with a decimal comma
- The debit/credit mark of a statement line is not C, D, RC or RD
- The transaction type of a statement line is not S, N or F
- An opening balance differs from the closing balance of the previous message of the account
- In this file the opening balance plus the entries does not equal the closing balance