gpaulissen / ofxstatement-mt940

Convert Swift MT940 statement files into an OFX file.
https://gpaulissen.github.io/ofxstatement-mt940/
15 stars 7 forks source link

Key Error transaction_details #2

Open hofq opened 2 years ago

hofq commented 2 years ago

Hi, the Following Log i got from running your App: grafik

Traceback (most recent call last):                                                                                        File "C:\Python310\Scripts\ofxstatement-script.py", line 33, in <module>                                                  sys.exit(load_entry_point('ofxstatement', 'console_scripts', 'ofxstatement')())                                       File "C:\Python310\lib\site-packages\ofxstatement\tool.py", line 205, in run                                              return args.func(args)                                                                                                File "C:\Python310\lib\site-packages\ofxstatement\tool.py", line 176, in convert                                          statement = parser.parse()                                                                                            File "C:\Python310\lib\site-packages\ofxstatement\plugins\mt940.py", line 58, in parse                                    stmt: Statement = super().parse()                                                                                     File "C:\Python310\lib\site-packages\ofxstatement\parser.py", line 46, in parse                                           stmt_line = self.parse_record(line)                                                                                   File "C:\Python310\lib\site-packages\ofxstatement\plugins\mt940.py", line 118, in parse_record                            memo = transaction.data['transaction_details']                                                                      KeyError: 'transaction_details'    

I am Running pip 22.0.4 Python 3.10.0 Windows 11 22H2 Build 22000.675

My Bank is in the Part of the German Sparkasse compound, a Company by Nord/LB. I would Provide more information, but i don't know how to anonymize MT940 Data.

s-ol commented 2 years ago

I have the same issue with a bank from the Sparkasse compound. The file appears to use the same exact format as the knab.sta example.

student-CE commented 1 year ago

Have you found a solution please!! i have he same error shown.