After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 457591 - QIF import does not handle tabs at top of file
QIF import does not handle tabs at top of file
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks: backport
 
 
Reported: 2007-07-17 06:47 UTC by Selador
Modified: 2018-06-29 21:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (696 bytes, patch)
2008-01-11 11:36 UTC, Charles Day
committed Details | Review

Description Selador 2007-07-17 06:47:27 UTC
ANZ Bank, one of the "Big 4" banks in Australia, exports QIF files with three TAB whitespace characters at the beginning.  

Sample File (between dashed lines):
----------------------
			
!Type:Bank
D21/06/2007
T-100.00
PANZ ATM WITHDRAWAL
^
----------------------

Gnucash 2.2.0 fails to import this file with the error "QIF file load failed: File does not appear to be a QIF file."

After manually deleting the first (whitespace) line in an editor, the import works.

Yes, the Official QIF Specification states that the first line must be a header, ie. "!Type:".  However, it's a fair assumption that Quicken does handle this extraneous whitespace (can someone with Quicken confirm?).  Regardless, the chance of getting a Bank to modify their export format is slim.  So it would be nice if GnuCash's QIF import could be relaxed a little to handle the extraneous whitespace.
Comment 1 Charles Day 2007-12-18 09:22:06 UTC
It looks like ANZ has fixed their format... my last download from them didn't have the leading tabs and imported OK.
Comment 2 Charles Day 2008-01-11 11:36:48 UTC
Created attachment 102584 [details] [review]
Proposed patch

This proposed patch allows the QIF importer to ignore lines that only contain whitespace.
Comment 3 Derek Atkins 2008-01-20 18:07:25 UTC
Applied to trunk as r16876.
Awaiting backport
Comment 4 Andreas Köhler 2008-01-30 20:33:36 UTC
Applied to branches/2.2 as r16896 for GnuCash 2.2.4.
Thanks a lot!
Comment 5 John Ralls 2018-06-29 21:43:08 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=457591. Please update any external references or bookmarks.