Verify MT940 :60F:/:60M: and :62F:/:62M: continuity
An intermediate page closes with :62M: and the next page carries that booked balance in :60M:. Reconcile movements on each page and compare the carry between pages for the same account and currency.
Open this sample in Air-Gapped ConverterWorked bank sample
Synthetic bank data for local reconciliation.
:20:REPORT-1
:25:EUR-OPERATING
:28C:007/1
:60F:C261130EUR100,00
:61:2611301130C25,00NTRFINV-0042//BANK-841
:86:First page receipt
:62M:C261130EUR125,00
:20:REPORT-2
:25:EUR-OPERATING
:28C:007/2
:60M:C261130EUR125,00
:61:2611301130C25,00NTRFINV-0042//BANK-841
:86:Second page receipt
:62F:C261130EUR150,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| :60F: / :60M: | First / intermediate opening | Mark + date + currency + amount | Summing carried openings duplicates cash. |
| :62M: → :60M: | Adjacent page carry | Signed booked balances | Balanced pages can still have a broken carry. |
Root cause and ERP fix
- A page was omitted during download. Check sequence numbers even when both equations balance.
- A debit closing lost its sign. Compare signed amounts and currencies across the carry.
- A new account starts in the file. Reset the continuity key when the account changes.
Inspect with the MIT parser
Save the sample as mt940-opening-closing-continuity.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-opening-closing-continuity.sta.
import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const blocks = text.replace(/\r/g, '').replace(/^-[ \t]*$/gm, '').trim().split(/(?=^:20:)/m);
const reports = blocks.map(block => inspect(block.trim(), { transactions: true }));
const [first, second] = reports;
console.log(first.closing, second.opening, first.closing === second.opening);Open this sample in Air-Gapped ConverterExport a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.
npm package · SDK source · Format reference