Error messages / MT940 file validator
The debit/credit mark of a statement line is not C, D, RC or RD
What the validator shows
This is the finding for the sample file mt940-error-line-mark.sta:
- ErrorThe debit/credit mark of a statement line is not C, D, RC or RDLine 6 · Field 61 (statement line) · Debit/credit mark · position 15
- Expected
- C, D, RC or RD
- Found
- X
:61:2610051005X1190,00NTRFNONREF//2026100500001
Spaces are shown as dots so that they can be counted.
A message of the MT940 file validator, reported as an error. A :61: line carries C, D, RC or RD, then maybe a funds code letter. How the validator reads CR and DR and why EC and ED are reported.
What the text says
SWIFT's description of the field :61: lets the debit/credit mark be one of four codes: C (credit), D (debit), RC (reversal of credit) and RD (reversal of debit); error code T51. After the mark, one more letter may follow: the funds code, the third letter of the currency.
How the validator reads the letters
RCandRDare read first.- Otherwise
CorDis the mark and a letter after it is the funds code. SoCRandDRin a euro statement are a credit and a debit with funds code R, and are not reported. - Anything else is an error with the letters found, for example
X.ECandED, which some banks write, are not in the text we checked. They get their own warning, "not in the text we checked", which is a statement about our text and not about the bank.
What it means for you
A mark that is not read leaves the sign of the entry unknown, so a balance cannot be reproduced from the entries.
How to fix it
The sample for this page has the mark X. If a file from your bank shows EC or ED, ask the bank what it means: this tool does not guess.
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 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