Error messages / MT940 file validator
The transaction type of a statement line is not S, N or F
What the validator shows
This is the finding for the sample file mt940-error-transaction-type.sta:
- ErrorThe transaction type of a statement line is not S, N or FLine 6 · Field 61 (statement line) · Transaction type · position 24
- Expected
- S, N or F
- Found
- Q
:61:2610051005CR1190,00QTRFNONREF//2026100500001
Spaces are shown as dots so that they can be counted.
A message of the MT940 file validator, reported as an error. After the amount, a :61: line has one letter for the transaction type: S, N or F. What each means and what the validator says about other letters.
The rule
After the amount, the field :61: has one letter and three more characters. SWIFT's description says the letter must be S, N or F (error code T53). With S, the three characters are a SWIFT message type number; with N and F they are an identification code such as TRF for a transfer. The validator checks the letter and, for S, that the three characters are a number from 100 to 999.
What it does not check
The identification codes themselves are not checked. The text lets banks use others, and this tool carries no list of them.
What the finding shows
The "Found" line gives the letter. In the sample for this page it is Q where the statement has N.
Why it happens
- A program writes its own letter for the kind of booking.
- The amount before it was cut short or run into the letter, so the letter read is the wrong one.
What it means for you
Programs may use this code to classify entries. An unknown letter may leave the entry unclassified or stop the import.
How to fix it
Ask the bank. This tool does not change the file.
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 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
- 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