ofxstatement-mt940 icon indicating copy to clipboard operation
ofxstatement-mt940 copied to clipboard

Key Error transaction_details

Open hofq opened this issue 3 years ago • 2 comments

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.

hofq avatar May 29 '22 01:05 hofq

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.

s-ol avatar Jun 24 '22 15:06 s-ol

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

student-CE avatar Nov 23 '22 11:11 student-CE