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:

  1. ErrorA reference starts or ends with a slash, or has two slashes in a row
    Line 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

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.

Check your own file

Other MT940 file messages