Error messages / MT940 file validator
A reference starts or ends with a slash, or has two slashes in a row
What the validator shows
This is the finding for the sample file mt940-error-reference-slashes.sta:
- ErrorA reference starts or ends with a slash, or has two slashes in a rowLine 2 · Field 20 (transaction reference) · positions 5-15
- Found
- MUSTER//190
:20:MUSTER//190
Spaces are shown as dots so that they can be counted.
A message of the MT940 file validator, reported as an error. The references in fields 20 and 21 may not start or end with a slash or hold two slashes in a row. The rule, its error code and how to fix a file.
The rule
SWIFT's description of the fields :20: (transaction reference) and :21: (related reference) says the reference must not start or end with a slash and must not contain two consecutive slashes; the network answers with error code T26. The validator checks the same three things and shows the reference in the "Found" line.
Why the slashes matter
Inside a message a double slash marks the start of a second part in some fields, for example the bank reference in an entry line. A reference with // in the middle of the first line can therefore be read as two references.
Why it happens
- The reference was built from parts joined with a slash, and one part was empty.
- A date such as
2026/10/05or a path was used as a reference. - The reference was cut to 16 characters and the cut fell on a slash.
How to fix it
Ask the sender, usually your bank, to change how the reference is built. In the sample for this page the reference is MUSTER//190. This tool does not change references.
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
- 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