Rule reference · ISO 20022 schema (XSD) · ISO 20022 schema (XSD)
BNK-ISO-001: Element not expected at this position
The ISO 20022 schema does not allow this element here: an element is missing, misplaced or not permitted.
| Severity | BLOCKER Blocker: the run fails |
|---|---|
| Applies to | pain.001.001.09 and pain.001.001.03, against the official ISO 20022 schema |
| Source | ISO 20022 message schema (XSD) |
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.
Try it with a synthetic example
These files are synthetic test data from BankLint's test corpus. Download one, or validate it directly.
- GrpHdr/MsgId removed → schema violation. FAIL · Download · Validate it
Related rules: ISO 20022 schema (XSD)
- BNK-ISO-002: Required element missing
- BNK-ISO-003: Value does not match the required format
- BNK-ISO-004: Value too long / Value too short / Value length not allowed
- BNK-ISO-005: Value is not an allowed code
- BNK-ISO-006: Value has the wrong data type
- BNK-ISO-007: Too many decimal places / Too many digits
- BNK-ISO-008: Value below the allowed minimum / Value above the allowed maximum
- BNK-ISO-009: Attribute not allowed / Required attribute missing
- BNK-ISO-010: Unknown root element
- BNK-ISO-099: Schema violation
Validate a pain.001 fileFree, no account needed, files are not stored.