LOCAL PARSER · ISO20022
pain.001 Payment File Viewer
Inspect payment batches, control sums, execution dates, parties and transactions in pain.001 XML.
● Browser-only processing01 / SOURCE
02 / REPORT
Recent history
Method and formulas
Transaction counts and instructed amounts are extracted and compared with Group Header control fields when present.
Use test or appropriately protected data. Parsing is local, but data can still be visible on your screen and in browser memory.
Passing totals does not prove bank acceptance or account authorization.
GUIDE
What this tool does and when to use it
The pain.001 Payment File Viewer parses ISO 20022 CustomerCreditTransferInitiation messages to display Group Header details, payment information blocks, debtor and creditor parties, instructed amounts, and execution dates. It extracts transaction counts from NbOfTxs and control sums from CtrlSum then compares them against the actual number of CdtTrfTxInf elements and the summed InstdAmt values. Use the tool before transmitting files to a bank to confirm batch integrity, spot currency mismatches, or verify that required execution dates are present. The viewer processes content entirely within the browser session so no data leaves the local environment.
Worked example with realistic numbers
Consider a pain.001 file containing one payment information block with a required execution date of 2026-07-25. The Group Header lists NbOfTxs equal to 1 and CtrlSum equal to 125.50. Inside the single CdtTrfTxInf the InstdAmt element carries the value 125.50 with Ccy attribute EUR. The tool reports one transaction found, a calculated sum of 125.50, and confirms that the control totals match. The debtor name Example Sender and creditor IBAN DE89370400440532013000 are displayed alongside the EndToEndId E2E-DEMO-1. When a second transaction of 340.00 EUR is added the recalculated sum becomes 465.50 while NbOfTxs updates to 2; any discrepancy between these derived figures and the header values is highlighted immediately.
| Element | Value | Derived Total |
|---|---|---|
| NbOfTxs | 2 | 2 |
| CtrlSum | 465.50 | 465.50 |
| InstdAmt (EUR) | 125.50 + 340.00 | 465.50 |
Formula and method table
| Input Field | Extraction Logic | Output Unit | Comparison Result |
|---|---|---|---|
| GrpHdr/NbOfTxs | Integer count of CdtTrfTxInf nodes | count | Match or mismatch flag |
| GrpHdr/CtrlSum | Decimal sum of all InstdAmt | currency amount | Match or mismatch flag |
| PmtInf/ReqdExctnDt/Dt | ISO date string | YYYY-MM-DD | Presence check |
| CdtTrfTxInf/Amt/InstdAmt | Amount with Ccy attribute | numeric with ISO currency | Aggregated total |
Units and conversions notes
All instructed amounts are treated as decimal numbers with the currency code supplied in the Ccy attribute of each InstdAmt element. The viewer does not perform any currency conversion; it only checks that every amount within a single file uses the same currency code when a CtrlSum is present. Dates follow the ISO 8601 format restricted to the Dt child element under ReqdExctnDt. IBANs and party names are extracted as literal strings without normalization. When multiple PmtInf blocks exist the tool aggregates transaction counts and amounts across all blocks for comparison against the single Group Header control values.
Limitations
The viewer performs only syntactic and arithmetic validation of the supplied XML structure. It cannot confirm that the debtor account holds sufficient funds, that the creditor IBAN is reachable, or that the bank will accept the file after schema and business-rule checks. Control-sum agreement does not guarantee downstream authorization or regulatory compliance. Because processing occurs locally any values visible on screen remain in browser memory until the tab is closed. The tool does not support pain.002 status messages or pain.008 direct-debit files.
Common mistakes
Users frequently omit the Ccy attribute on InstdAmt elements, causing the sum comparison to fail silently. Another frequent error is placing different currencies inside the same payment information block while a single CtrlSum is declared. Incorrect nesting of ReqdExctnDt under PmtInf instead of under the correct child element leads to missing execution-date warnings. Supplying a CtrlSum that includes cents without two decimal places produces rounding mismatches. Finally, counting only the first PmtInf block while the header NbOfTxs reflects all blocks across the document creates false mismatch alerts.
Additional detail on the pain.001 structure helps users avoid these issues. The GrpHdr element must appear once and contains MsgId, CreDtTm, NbOfTxs, and optionally CtrlSum. Each PmtInf block groups transactions sharing the same debtor, execution date, and payment type. Inside CdtTrfTxInf the PmtId holds EndToEndId for reconciliation while Amt contains the instructed amount. Cdtr and CdtrAcct supply beneficiary details. The viewer surfaces each of these paths so that missing mandatory elements become immediately visible. When preparing production files always cross-check that the summed InstdAmt values exactly equal the CtrlSum to the last decimal place and that NbOfTxs equals the actual node count. Edge cases such as zero-amount transactions or future execution dates beyond standard settlement windows are flagged for manual review even though they may be syntactically valid.
Frequently asked questions
What happens when CtrlSum is absent from the Group Header?
The tool still counts transactions and sums InstdAmt values but skips the numeric comparison step, reporting only the derived totals without a mismatch flag.
How are amounts handled when different Ccy attributes appear inside one file?
Each InstdAmt is recorded with its own currency; the viewer lists per-currency subtotals and notes that a single CtrlSum cannot be validated across mixed currencies.
Does the viewer check IBAN checksum validity?
No, it extracts IBAN strings literally and performs no modulo-97 checksum calculation or country-specific format validation.
What edge case occurs with duplicate EndToEndId values across transactions?
The tool reports the duplicate strings without blocking; banks may later reject the file during duplicate detection even if local totals match.
How does the tool treat ReqdExctnDt when expressed as a date-time instead of a date?
Only the Dt child element is parsed; any Tm child is ignored and a warning is shown that time components are not supported in this viewer.
Can the viewer process pain.001 files larger than available browser memory?
Very large files may cause the browser tab to become unresponsive because the entire XML is loaded into memory for node traversal and summation.
What production caveat applies when CtrlSum matches but schema validation later fails?
Header totals can agree while mandatory elements such as PmtInfId or Cdtr/Nm are missing, so the file will still be rejected by the receiving bank.
How are negative instructed amounts flagged?
Any InstdAmt value less than zero is highlighted because payment initiation messages must contain positive amounts only.