BankLint

Rule reference · ISO 20022 schema (XSD)

BNK-ISO-002: Required element missing

A mandatory child element required by the ISO 20022 schema is missing.

SeverityBLOCKER Blocker: the run fails
Applies topain.001.001.09 and pain.001.001.03, against the official ISO 20022 schema
SourceISO 20022 message schema (XSD) · Standards and sources

Why it matters

Banks validate payment files against the ISO 20022 schema and typically reject the whole file on a schema violation.

How to fix it

Correct the mapping that produces this element in the payment-generation configuration.

How other validators report it

The same schema error as printed by Java validators (Xerces, the W3C XML Schema rule code) and by libxml2 (xmllint, lxml). … stands for the element, value or limit in your file.

Java / Xerceslibxml2 (xmllint, lxml)
cvc-complex-type.2.4.bMissing child element(s). Expected is ( … ).

All codes in one table: pain.001 XSD validation errors.

Example

Synthetic XML fragments.

Example that fails
<CstmrCdtTrfInitn>
  <GrpHdr>
    <MsgId>MSG-2026-0001</MsgId>
    <CreDtTm>2026-10-16T09:00:00</CreDtTm>
    <NbOfTxs>4</NbOfTxs>
    <CtrlSum>6460.44</CtrlSum>
  </GrpHdr>
  <PmtInf>…</PmtInf>
</CstmrCdtTrfInitn>
Corrected
<CstmrCdtTrfInitn>
  <GrpHdr>
    <MsgId>MSG-2026-0001</MsgId>
    <CreDtTm>2026-10-16T09:00:00</CreDtTm>
    <NbOfTxs>4</NbOfTxs>
    <CtrlSum>6460.44</CtrlSum>
    <InitgPty>
      <Nm>Synthetic Corp Example AG</Nm>
    </InitgPty>
  </GrpHdr>
  <PmtInf>…</PmtInf>
</CstmrCdtTrfInitn>

Linty calls this bug the Schema Scuttler. Try it in Spot the bug

Try it with a synthetic example

These files are synthetic test data from BankLint's test corpus. Download one, or validate it directly.

  • InitgPty removed from the group header: a mandatory element is missing at the end of GrpHdr. FAIL · Download · Validate it

Explained in

Questions

What does BNK-ISO-002 check?

A mandatory child element required by the ISO 20022 schema is missing.

How do I fix “Required element missing”?

Correct the mapping that produces this element in the payment-generation configuration.

Validate a pain.001 fileFree, no account needed, files are not stored.