Error messages / CAMT.053 file validator
A mandatory element is missing
What the validator shows
This is the finding for the sample file camt053-error-required-element.xml:
- ErrorA mandatory element is missingLine 5 · BkToCstmrStmt/Stmt[1]/Acct · Acct
- Expected
- 1
- Found
- none
····<Stmt>
Spaces are shown as dots so that they can be counted.
A message of the CAMT.053 file validator, reported as an error. The camt.053 schema requires some elements in every statement, such as the account. How the validator names the element that is missing.
What the schema requires
In the camt.053 schemas (001.02, .03, .04 and .08) some elements have a minimum of one occurrence: in the group header the message id and the creation time; in each statement the id, the account, at least one balance, and (in version .02 only) the creation time; in each balance the type, amount, credit or debit indicator and date; in each entry the amount, the indicator, the status and the bank transaction code. The validator reports each one that is missing.
What the finding shows
The line and the path say where the element should be, for example Stmt[1]/Acct. The sample for this page is a statement whose account element was taken out.
Why it happens
- A program leaves out an element it has no value for, though the schema calls for it.
- The file is cut, or built from parts of other files.
- The file follows a newer or older version than its namespace says: in version .08 the statement creation time is optional, in .02 it is not.
How to fix it
Ask the bank for a complete file. This tool does not add elements.
Source: the ISO 20022 camt.053 schemas (001.02, .03, .04 and .08), iso20022.org. This site is not the official source.
Check your own file
Drop your file into the CAMT.053 file validator. It reports problems and does not change the file.
Other CAMT.053 file messages
- This is not an ISO 20022 message: the root element is not Document in an ISO 20022 namespace
- Elements are not in the order the schema requires
- A text is empty or longer than its type allows
- A value is not in the form, or not one of the values, its type allows
- An amount is not a non-negative decimal within the schema's limits, or has no valid currency
- A date or date and time is not in the form the schema allows
- In this file the opening balance plus the entries does not equal the closing balance