BankLint

Rule reference · ISO 20022 schema (XSD)

BNK-ISO-006: Value has the wrong data type

The value is not valid for the data type (for example date, decimal or boolean) required by the schema.

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-datatype-valid.1.2.1'…' is not a valid value of the atomic type '…'.

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

Example

Synthetic XML fragments.

Example that fails
<ReqdExctnDt>
  <Dt>20-10-2026</Dt>
</ReqdExctnDt>
Corrected
<ReqdExctnDt>
  <Dt>2026-10-20</Dt>
</ReqdExctnDt>

Try it with a synthetic example

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

  • Requested execution date written as 20-10-2026: ISO 20022 dates are YYYY-MM-DD. FAIL · Download · Validate it

Explained in

Questions

What does BNK-ISO-006 check?

The value is not valid for the data type (for example date, decimal or boolean) required by the schema.

How do I fix “Value has the wrong data type”?

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

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