Comment 9 for bug 778601

Revision history for this message
In , eugenia (clausenr) wrote :

(In reply to comment #0)
> Improve the diagnostic message, saying that the problem is due to an empty line
>
> Other information:
> I came across this bug when trying to import a file generated by a script of
> mine. The file looks like this:
> ---------
> !Type:Bank
> D31/03/2009
> P
> MEnd 31.03.2009
> T1.87
> ^
> ---------
> GnuCash fails to import this file with the general message "A bug was detected
> while converting the QIF data".

May 2011. This is still a problem.

GnuCash V2.2.9 (Ubuntu) r17949M 2010-03-23.

It appears when a transaction on a credit card is authorised by a bank and there is a delay before the name of the payee is added.

D23/04/11
T-45.35
P
M377878401....65

If the statement is downloaded before the payee name is added by the bank, it appears that the lack of any information after the "P" upsets /usr/share/gnucash/scm/qif-import/qif-to-gnc.scm and /usr/share/gnucash/scm/qif-import/qif-to-gnc.scm.

I cannot find where this error message comes from but to me it is overkill.

If the object is to increase the appeal of GnuCash for anyone trying to migrate from Microsoft alternatives (Quicken), to receive such a 'dead end' message without any suggestion as to what to look for will turn people off. The average user will uninstall GnuCash and go back to what they used previously.

Until the coding error is found, can the message be changed to something more helpful and include something such as a web link that has a list of known instances where the code cannot handle the import - i.e "Code cannot handle blank after "P" in QIF File - Delete transaction or add text after the "P" using Gedit or similar"