Error messages / CAMT.053 file validator
This is not an ISO 20022 message: the root element is not Document in an ISO 20022 namespace
What the validator shows
This is the finding for the sample file camt053-error-not-iso20022.xml:
- ErrorThis is not an ISO 20022 message: the root element is not Document in an ISO 20022 namespaceLine 2 · Document
- Expected
- Document in urn:iso:std:iso:20022:tech:xsd:camt.053.001.NN
- Found
- Document (no namespace)
<Document·xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Spaces are shown as dots so that they can be counted.
A message of the CAMT.053 file validator, reported as an error. A camt.053 file is an XML Document in a namespace that names the message and its version. What the validator finds when the namespace is missing.
What the validator looks for
A camt.053 statement is XML. Its first element is Document, and that element carries a namespace that names the message and its version, for example urn:iso:std:iso:20022:tech:xsd:camt.053.001.08. The ISO 20022 schemas make every element belong to that namespace. The validator reports this message when the first element is not Document, when the namespace is missing or does not have that form, or when elements outside it appear (other than inside the supplementary data).
Why it happens
- The file is not a bank statement at all, but some other XML.
- The namespace declaration was removed or damaged by a program that re-saved the file. The sample for this page is a statement without its
xmlns. - The file is for an older or private schema that uses another namespace.
What it means for you
Programs that follow the schema find no statement in such a file, or ignore it. Some readers are lenient about a missing namespace; the schema is not.
How to fix it
Ask the bank for the file again. Do not add the namespace by hand: you would be guessing which version the content follows. This tool does not change files.
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
- A mandatory element is missing
- 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