StmtRecon
MT940 fields and statement controls

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 Converter

Worked 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,00

Field anatomy

Field or pathMeaning in this fileType or formatERP or Excel import risk
:86: physical lineNarrative payload before wrap65 characters in this profileA space splits ORDER-00042789.
ContinuationRemaining characters before next fieldUntagged lineReading into :62F: corrupts the reference.

Root cause and ERP fix

  1. One line was read as one transaction. Attach an untagged continuation to its open :86:.
  2. A trim step dropped a meaningful space. Preserve payload characters while removing the transport separator.
  3. 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 Converter

Export 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

Related MT940 fields and statement controls

Export your full workbook

Purchases are currently unavailable. Existing licenses can be activated offline.