GNOME Bugzilla – Bug 160735
QIF Importer should cope with !Option line
Last modified: 2018-06-29 20:48:22 UTC
Please describe the problem: Although all stages of the import process are carried out (nothing is listed under "match qif accounts/categories/payees/memos with gnucash accounts") nothing is actually imported. Steps to reproduce: Import this QIF: !Type:Bank !Option:AllXfr D01/12/04 T-898.15 PSt. Veit Str. Miete MSt. Veit Str. Miete ND/D L ^ D13/12/04 T-10.42 PJeff VIAG Interkom MJeff VIAG Interkom ND/D L ^ D16/12/04 T-24.04 PJudy VIAG Interkom MJudy VIAG Interkom ND/D L ^ Actual results: Nothing is imported Expected results: The 3 transactions should be imported Does this happen every time? Yes Other information:
After some more playing around, it seems that if the line: !Option:AllXfr is removed, then everything works as expected. Perhaps gnucash could be updated to cope with this option.
Thank you for reporting this problem. However, QIF is a really bad format since virtually every bank adds its own additions to these files. It is nearly impossible to cope with all exceptions that are around. In your case, you can remove these lines with the command grep -v '!Option:AllXfr' original.qif > fixed.qif and import the "fixed.qif" into gnucash. I'm afraid we will not be able to implement any further support to these exceptions...
couldn't gnucash's QIF importer simply ignore any !Option: it doesn't understand?
I'll see if I can fix this soon.
Okay, I've added code to ignore any unknown !Option. This should be fixed on trunk in r14522. Awaiting audit to backport to 2.0.
reviewed. fine for backport.
Backported in r14560. Should be fixed in 2.0.1.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=160735. Please update any external references or bookmarks.