BankLint

Guides · Errors and rejections · By Tan Gravam · Updated 2026-10-20

Why banks reject pain.001 files

Most rejected pain.001 files fail for a small set of reasons: the XML is broken, the file does not match the ISO 20022 schema, or it breaks a SEPA rule such as charge bearer SLEV, EUR only, two decimals, IBAN-only accounts, 70-character names or totals that do not add up. Almost all of them come from the payment-generation configuration, not from the individual payments.

Start from the bank’s status report

The bank reports a rejection in a status report (pain.002) with a reason code and often a short text; pain.002 status and reason codes explains how to read it. The sections below start from the cause in the file.

The file cannot be read

A truncated export, an encoding problem or a manual edit produces a file that is not well-formed XML (BNK-XML-001). Banks reject these files completely.

The file does not match the ISO 20022 schema

Schema violations usually reject the whole file. The most frequent ones are a missing mandatory element, an element in the wrong place, a value that is too long, and a value in the wrong format. Each error message is explained in pain.001 XSD validation errors.

  • BNK-ISO-001BLOCKERElement not expected at this position. The ISO 20022 schema does not allow this element here: an element is missing, misplaced or not permitted.
  • BNK-ISO-002BLOCKERRequired element missing. A mandatory child element required by the ISO 20022 schema is missing.
  • BNK-ISO-003BLOCKERValue does not match the required format. The value does not match the format pattern defined by the ISO 20022 schema.
  • BNK-ISO-004BLOCKERValue length outside the schema limits. The value is longer or shorter than the ISO 20022 schema allows for this element.
  • BNK-ISO-005BLOCKERValue is not an allowed code. The value is not one of the codes allowed by the ISO 20022 schema.

The file breaks a SEPA rule

SymptomRuleWhere to look
Charge bearer SHAR, DEBT or CREDSEPA-SCT-CHRGBR-001Payment method configuration
Service level other than SEPASEPA-SCT-SVCLVL-001Payment method configuration
Non-EUR amount in a SEPA fileSEPA-SCT-CCY-001Payment method selection for foreign-currency payments
Three decimals or a zero amountSEPA-SCT-AMT-002, SEPA-SCT-AMT-001Amount rounding and formatting in the export
Account without IBANSEPA-SCT-CDTRACCT-001Vendor bank master data (IBAN and BIC)
Creditor agent without BICSEPA-SCT-CDTRAGT-001Omit the creditor agent when no BIC is known
Name longer than 70 charactersSEPA-SCT-NAME-003Vendor master data or name truncation in the export
Identifier with "/" at the start or end, or "//"SEPA-SCT-ID-002How end-to-end references are generated
Two remittance lines, or Ustrd and Strd togetherSEPA-SCT-RMTINF-002, SEPA-SCT-RMTINF-001Remittance mapping (remittance information)
Control sum or number of transactions does not add up (often AM10 for the control sum, AM18 for the number of transactions)SEPA-SCT-CTRLSUM-004, SEPA-SCT-CTRLSUM-005, SEPA-SCT-NBOFTXS-002, SEPA-SCT-NBOFTXS-003Totals calculated before payments were removed or split (CtrlSum and NbOfTxs)
Creditor IBAN from a country outside SEPASEPA-SCT-IBAN-004Payment method selection: the payment needs a non-SEPA method
Structured address without town or countrySEPA-SCT-ADDR-002Vendor master data or the address mapping (structured addresses)
Paying a bank in Switzerland, the United Kingdom or another non-EEA SEPA country without the debtor countrySEPA-SCT-ADDR-003Company address mapping for the debtor
The same PmtInfId twice in one file (often DU02)SEPA-SCT-ID-003How payment information identifications are generated

The codes in brackets are the ISO reason codes banks commonly return in the pain.002; see pain.002 status and reason codes.

It worked last month

When a file the bank accepted before is suddenly rejected, something in the generation changed: a transport, a support package, a DMEE or format-tree change, new master data. Start from the reason code in the bank’s status report (pain.002 reason codes), then compare the new file with the last accepted one: that shows the configuration change directly. See payment-file regression testing.

Questions

Does BankLint know my bank’s rejection codes?

No. BankLint checks the ISO 20022 schema and the published SEPA guidelines. It does not claim to reproduce bank-specific checks or rejection codes.

Can I test a file without sending it to the bank?

Yes. Upload it on the BankLint homepage; it is checked in memory and not stored. Use test files while BankLint is in beta.

Sources: EPC132-08 2025 Version 1.0 (European Payments Council) and the ISO 20022 message schemas. All sources and dates: Standards and sources.

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

All guides