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:

  1. ErrorThis is not an ISO 20022 message: the root element is not Document in an ISO 20022 namespace
    Line 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

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.

Check your own file

Other CAMT.053 file messages