Code Monkey home page Code Monkey logo

Comments (5)

wolph avatar wolph commented on September 5, 2024

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.

sphaero avatar sphaero commented on September 5, 2024

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.

wolph avatar wolph commented on September 5, 2024

from mt940.

sphaero avatar sphaero commented on September 5, 2024

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.

wolph avatar wolph commented on September 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.