Error messages / MT940 file validator
A mandatory field of the statement is missing or empty
What the validator shows
This is the finding for the sample file mt940-error-missing-28c.sta:
- ErrorA mandatory field of the statement is missing or emptyLine 2 ยท Field 28C
- Expected
- Field 28C
- Found
- No such field in the message
: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. Fields 20, 25, 28C, 60a and 62a are mandatory in every MT940 message. How to see which one is missing and why files leave one out.
The five mandatory fields
In SWIFT's description of the MT940, a statement message has five fields that must be present: :20: (transaction reference), :25: (account), :28C: (statement number and sequence), :60F: or :60M: (opening balance) and :62F: or :62M: (closing balance). Entries (:61:) are optional. The validator reports one finding for each field that is absent or empty, and says which in the "Expected" line.
Why a file leaves one out
- The sender writes
:28:instead of:28C:. That is a different field; the validator also lists it as a tag the format does not name. - The file is a fragment: part of a longer file, or one message cut from a batch.
- The bank leaves the statement number out because it numbers statements elsewhere.
What it means for you
Software that reads MT940 may refuse a message with a mandatory field missing, or fill the gap in its own way. The sample for this page is a normal statement with the :28C: line taken out.
How to fix it
Ask the bank for the statement again, as a complete file. This tool does not add the field for you: a statement number is the bank's, not ours.
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
- 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
- A balance date is not a valid date (YYMMDD)
- 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