Error messages / MT940 file validator
A field tag is not one the MT940 format lists
What the validator shows
This is the finding for the sample file mt940-warning-unknown-tag.sta:
- WarningA field tag is not one the MT940 format listsLine 7 · Field NS · positions 1-4
- Found
- :NS:
:NS:22Test
Spaces are shown as dots so that they can be counted.
A message of the MT940 file validator, reported as a warning. Some files carry tags such as :NS: or :28: that SWIFT's MT940 description does not list. What the validator says about them and what it does not.
What is reported
SWIFT's description of the MT940 lists a fixed set of fields: 20, 21, 25, 28C, 60F, 60M, 61, 62F, 62M, 64, 65 and 86. A tag outside that set gets this warning, with the tag in the "Found" line. Typical cases are :NS: lines, which some files carry after entries, and :28: without the letter C.
What it does not say
The validator says nothing about what such a line means or whether your bank or your software expects it. Some programs read these lines. It is a warning, not an error, because the format text is silent on them and the file may still be what the bank sends.
What to do
- If the tag is one your bank documents, nothing is wrong on your side.
- If the tag is a typo, such as
:6O:with the letter O, the line is not read as the field it was meant to be. - If software refuses the file, compare its field list with the tag in the finding.
The sample for this page is a normal statement with a :NS: line after the first entry. This tool does not remove lines.
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 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