Error messages / MT940 file validator

Fields are not in the order the MT940 format lists them

What the validator shows

This is the finding for the sample file mt940-error-field-order.sta:

  1. ErrorFields are not in the order the MT940 format lists them
    Line 3 ยท Field 20 (transaction reference)
    Found
    :20: after a field that belongs after it
    :20:MUSTER-2026-190

Spaces are shown as dots so that they can be counted.

A message of the MT940 file validator, reported as an error. The fields of an MT940 message come in a fixed order: 20, 21, 25, 28C, 60a, then the entries, then 62a. How the validator finds a field out of place.

The order

The fields of an MT940 message stand in the order SWIFT's description lists them: the reference (:20:), an optional related reference (:21:), the account (:25:), the statement number (:28C:), the opening balance (:60F: or :60M:), then any number of entries (:61:, each optionally followed by an :86:), the closing balance (:62F: or :62M:), optionally the available balances (:64:, :65:) and a final :86:. The German banks' specification gives the same order.

What the finding shows

The validator names each field that stands after a field that belongs behind it. In the sample for this page the account and the reference have swapped places, so the reference is reported.

Why it happens

How to fix it

Download the statement again. If the bank's own file has the wrong order, tell the bank; software that reads MT940 line by line may still cope, but the file does not follow the format. This tool does not reorder fields.

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