Error messages / CAMT.053 file validator
Elements are not in the order the schema requires
What the validator shows
This is the finding for the sample file camt053-error-element-order.xml:
- ErrorElements are not in the order the schema requiresLine 6 · BkToCstmrStmt/Stmt[1]/Id · Id
- Expected
- Id before Acct
- Found
- after Acct
······<Acct><Id><IBAN>DE34000100010000001001</IBAN></Id><Ccy>EUR</Ccy><Ownr><Nm>Muster·Handels·GmbH</Nm></Ownr><Svcr><FinInstnId><BICFI>MUSTDEF0XXX</BICFI><Nm>Musterbank</Nm></FinInstnId></Svcr></Acct><Id>MUSTER-2026-190</Id><StmtPgntn><PgNb>1</PgNb><LastPgInd>true</LastPgInd></StmtPgntn><ElctrncSeqNb>190</ElctrncSeqNb><CreDtTm>2026-10-05T20:15:00+02:00</CreDtTm>
Spaces are shown as dots so that they can be counted.
A message of the CAMT.053 file validator, reported as an error. In camt.053 the child elements of each element must come in the order the schema lists them. How the validator finds one that is out of place.
The rule
The camt.053 schemas describe most elements as a sequence: the children must come in the order listed. For example a statement lists its id before its account. A person reading the file would not mind, but a program that follows the schema is allowed to refuse it.
What the finding shows
The finding names the line and the path of the element that stands too early or too late. In the sample for this page the account element comes before the statement id.
Why it happens
- A program writes the elements in the order of its own data.
- Lines were moved by hand.
- Two versions were mixed: an element that exists in one version stands where it belongs in another.
What it means for you
Many readers do not care about the order, including the converter on this site. A stricter reader or an import that validates the file against the schema does, and gives an error that may not say what is wrong.
How to fix it
Ask the bank for a corrected file. This tool does not reorder 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
- A mandatory element is missing
- 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