Comments (5)
The file doesn't appear to have an intermediate_opening_balance
, only an opening_balance
(the :60F:
: https://mt940.readthedocs.io/en/latest/mt940.tags.html#module-mt940.tags
The account identification data is across the entire file so that's in the transactions
(plural) object, not in a singular transaction.
from mt940.
but sometimes, it can not retrieve the account_identification in the entire file, all account_identification values in transactions are null.
from mt940.
That is very odd, that should only happen if it either doesn't detect the field at all or if something is overwriting it. Do you have any (anonymised) files you can send to test?
from mt940.
Hi,
Yes,
Here is an example but didn't check if all account identifications are detected. I'm on holiday now. If this file works, I send you another one after my holiday.
https://docs.google.com/document/d/1K73rB2Yu2JRWTuy1k0oEtqS-em98px0O9NgEW5AcaXs/edit?usp=drivesdk
But yesterday, I read 7000 files and it didn't work very well. Just 30% of account identifications were detected. Finally, I needed to dev by myself to read the account identification.
Thanks
from mt940.
I've done a bit of research and as far as I can see it's properly parsing the account identifications without issues. But... the account identification is in the transactions
object and not the transaction
itself.
To illustrate:
transactions = mt940.parse('test.mt940')
for transaction in transactions:
print(transactions.data['account_identification'], transaction)
With the loglevel set to debug you can see what it is and is not parsing but that gets very verbose. But it does show the account_identification for me in these cases. Perhaps you can share some other testdata where it fails?
from mt940.
Related Issues (20)
- 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
- AttributeError: module 'mt940' has no attribute 'parse' HOT 5
- Transaction Reference Number is not returned by the parser HOT 5
- Missing essential documentation for Transaction fields. HOT 2
- Dropping Transaction Data? HOT 1
- AttributeError: 'NoneType' object has no attribute 'encoding' HOT 1
- How to read closing, opening and available balances HOT 3
- Minor parsing errors
- New transaction is only created on `:61:` tag (statement) and not `:20:` tag (transaction reference number)
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.