Comments (9)
I want to report that ING in the Netherlands also has MT940 files with such SWIFT headers.
from cmxl.
Hi @FooBarWidget thanks for the report. good to know.
Do the headers contain information that you need?
Sadly I am currently lacking time to add this functionality.
from cmxl.
MT940 looks like arcane magic to me so I don't know how to answer that question. :) I haven't been able to parse my files using any Ruby parser library so I've switched to using CAMT053 XML files.
from cmxl.
sorry to hear that. maybe we should just strip it by default as the headers are mostly not needed and just cause problems. parsing should work fine if you remove the header.
But if you can use CAMT53 it is the better format to use anyway.
Thanks for reporting and let me know if there is anything that I can help with.
from cmxl.
could you provide a sample file of your format?
from cmxl.
I can't provide a full sample, but maybe it's helpful if I provide the beginning (with some info stripped out):
{1:F01INGBNL2ABXXX0000000000}
{2:I940INGBNL2AXXXN}
{4:
:20:P161007000000001
:25:<some IBAN here>EUR
:28C:00000
:60F:C160831EUR1234,56
:61:1609130913D1700,05NTRFEREF//16257002497622
/TRCD/00100/
:86:/EREF/<some description>//CNTP/<some IBAN here>/<some BIC here>
/<vendor name here>///REMI/USTD//<another description>/
It seems the parser bailed out at the first line.
from cmxl.
great thanks!
yes, the first 3 lines ({1: ...) are some header data the actual MT940 starts at :20: / after {:4
if you strip that header it should work. but as some banks have this header data the parser should support it.
from cmxl.
fixed by #13
from cmxl.
included in new release 1.2.0
from cmxl.
Related Issues (20)
- BN Paribas MT940 HOT 3
- release new version on rubygems? HOT 1
- support for Mt942 fields HOT 1
- Support for RC and RD in :61: funds_code HOT 3
- Chargeback transfers fail to be parsed HOT 4
- processing problem HOT 8
- Lines with non-digit tags should be parsed too. HOT 6
- Tag 86 at the end does not get parsed HOT 2
- When the entry date is a month after a statement in january, its year is wrongly reduced by one HOT 9
- Line break within transaction, colon right after newline HOT 7
- Negative Debit HOT 7
- Statement Field generation_date NoMethodError: undefined method `date' for nil:NilClass HOT 3
- Question/Discussion: Use of sha value for transactions HOT 10
- Field 61: Statement Line cannot parse transactions of type 'S' HOT 2
- transactions entry_date is not the actual transaction date HOT 3
- Unencrypted secret in codebase HOT 1
- chore: Enable Semaphore CI runs for tests HOT 2
- Deprecated Warning: Using the last argument as keyword parameters is deprecated HOT 2
- Statement and sequence numbers aren't correctly parsed when without filling 0 digits HOT 2
- rchardet19 upgrade
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmxl.