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:

  1. 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

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.

Check your own file

Other MT940 file messages