Comments (5)
The assert is there to make sure everything is being read correctly, apparently you have a transaction without details or details without a transaction.
Can you send me a (anonymized) version of your MT940 file so I can add support for your file?
from mt940.
Sorry these 940's are too big to anonymize unless you know an automatic way. I've found mt-940 to parse them correctly
from mt940.
from mt940.
It could be because ING adds a :86 field to the end balance. I'm running into an issue with mt-940 as well:
https://code.google.com/p/mt940/issues/detail?id=4
for example the tail of an ing mt940 looks like:
:61:1401060106C1597,20NTRFEREF//14006711073704
/TRCD/00100/
:86:/EREF/131224RABONL2U0001800002000006//CNTP/NL92RABO0xxxxxxx/RABONL2U/*******///REMI/USTD//000060/
:62F:C141231EUR12820,07
:64:C141231EUR12820,07
:65:C150101EUR12820,07
:65:C150102EUR12820,07
:86:/SUM/75/7/9740,23/13560,34/
-}
In your code this would cause the assertion error since there is one more detail field than transaction fields
from mt940.
Hmm... so it's an open-ended version of :86:
, this is different from what certain other providers claim to be the standard.
Regardless, I'll just remove the assertion, it was more of a sanity check anyhow.
from mt940.
Related Issues (20)
- AttributeError: module 'mt940' has no attribute 'parse' HOT 5
- Determining the type of a (parsed) transaction HOT 4
- Simple json encoding example does not export all data properly HOT 6
- Error using mt940 in fints: module 'mt940' has no attribute 'tags' HOT 3
- Don't install `tests` as a global python package HOT 4
- Parse GV codes when purpose does not start with GV codes HOT 2
- Encoding issue HOT 2
- The ASN bank MT940 file can not be parsed for tag 61 HOT 1
- Opening Balance HOT 4
- Parsing transactions : key 64 HOT 8
- Multiple accounts in one file HOT 7
- Parser doesn't show running balance or opening/closing balance at transaction level HOT 2
- Status and Fund code , when Currency ends with a D HOT 2
- Getting only single account data instead of multiple accounts HOT 1
- Non-numeric statement number HOT 2
- Exporting to tabular format HOT 1
- cannot run for citibank? HOT 1
- Single "account_identification" field HOT 2
- Statement line is parsed incorrectly for customer/bank reference HOT 2
- MT940 Issues parsing with :61: HOT 4
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 mt940.