Reassemble a 65-character MT940 :86: line across CRLF
A physical CRLF inside :86: can split a business reference while its logical field remains open. In this fixed-wrap profile, unfold the continuation before extracting the reference and stop at the next field tag.
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:Payment for manufacturing lot 2026-11, reference EREF+ORDER-00042
789
:62F:C261130EUR125,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| :86: physical line | Narrative payload before wrap | 65 characters in this profile | A space splits ORDER-00042789. |
| Continuation | Remaining characters before next field | Untagged line | Reading into :62F: corrupts the reference. |
Root cause and ERP fix
- One line was read as one transaction. Attach an untagged continuation to its open :86:.
- A trim step dropped a meaningful space. Preserve payload characters while removing the transport separator.
- A hard-wrap rule was applied to prose from another bank. Check a known reference across the line boundary.
Inspect with the MIT parser
Save the sample as mt940-crlf-65-character-wrap.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-crlf-65-character-wrap.sta.
import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text, { transactions: true });
const rows = report.transactions;
const match = rows[0].narrative.match(/EREF\+([A-Z0-9-]+)/);
console.log(match[1]);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