GNOME Bugzilla – Bug 759919
QIF imports crash GnuCash
Last modified: 2018-06-29 23:45:23 UTC
Created attachment 317949 [details] QIF file Importing a trivial QIF file into release 2.6.10 for windows causes GnuCash to crash at the step where it attempts to create a temporary account name based on the source filename. Release 2.6.6 for windows is able to import the same QIF file. The last trace file consists of : * 18:33:09 WARN <gnc.gui> [PrintAmountInternal()] Bad numeric: GNC_ERROR_ARG.
I think it's probably crashing before that, while trying to parse the file. Take a look at bug 756335, comment 10. Reverse that patch and see if it fixes the problem.
If it is not easy for a non-developer to learn how to reverse a patch, I will wait for a nightly build to try.
Changing that line in that file has allowed GnuCash 2.6.10 to import my test file and at least one other QIF file that Quicken 2005(?) made in 2007. GnuCash did not crash.
Looks like I've hit the same bug. I'm a new user trying to import some QIF files. I'm not a developer. I'm trying to run GnuCash 2.6.10 on Microsoft Windows [Version 10.0.10586]. My objective is to use GnuCash as an alternative to the old Quicken for Windows 3.1. which can't be run on Windows 10, unlike Windows XP. What I see is this. Select a simple QIF file (not as simple as the one attached by David Carlson above.) Do "Start" at screen "Load QIF Files". Do "Forward" at screen "QIF files you have loaded". Do "Forward" at screen "Accounts and stock holdings". GnuCash disappears. No sign of application error in Windows event logs. From David Carlson's comments above it sounds as though there may be a work-around by modifying a file. Is that a QIF file modification?
No, it's a scheme programming language file inside GnuCash. Much easier for you to install the latest nightly maint build from http://code.gnucash.org/builds/win32/maint/ which includes the fix for this bug.
Thank you for the fix John. I also had a problem with the QIF import crashing. After attempting to load a QIF file (i had generated from CSV using a Perl script) Gnucash simply crashed. On my other computer (which ran 5.6.9) the loading of the file failed with 'Transaction amount: Unrecognized or inconsistent format.'. After I fixed the transaction amount problem (The bank had put spaces in the amount, which my script didn't anticipate) the QIF file loaded fine on 5.6.9 but 5.6.10 still crashed. After installing the latest nightly build at http://code.gnucash.org/builds/win32/maint/gnucash-2.6.10-2016-01-10-git-abeb07b+-setup.exe Gnucash now mimics the behaviour of 5.6.9. It fails with 'Transaction amount: Unrecognized or inconsistent format.' with the incorrect QIF file, and it loads the correct QIF file successfully.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=759919. Please update any external references or bookmarks.