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:

  1. WarningA field tag is not one the MT940 format lists
    Line 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

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.

Check your own file

Other MT940 file messages