GnuCash crashes when importing QIF file
Derek Atkins
warlord at MIT.EDU
Mon Jan 22 09:31:09 EST 2007
Just looking at your QIF I can tell you what's wrong with it:
D16/1206
isn't a valid date. Also:
T(4.00)
isn't a valid (negative) number. The current regular expressions
don't handle this particular encoding of negativity.
Now, I admit that GnuCash shouldn't crash here and instead should
pop up an error, so I'll look into fixing that. But at least you
know what needs to get fixed.
-derek
Doug Laidlaw <laidlaws at hotkey.net.au> writes:
> In my case:
>
> gnucash
> gnucash: [M] "Found Finance::Quote version ""1.11"
> Backtrace:
> In unknown file:
> ?: 0* [qif-file:parse-fields #]
> In /usr/share/gnucash/scm/qif-import/qif-file.scm:
> 505: 1* (let* (# # # #) (and # # # ...) (cond # #))
> 520: 2* (and # # # ...)
> 561: 3* [check-and-parse-field #<procedure qif-xtn:date #> ...]
> 651: 4 (let (# # #) (if # #) (cond # # #) ...)
> 679: 5* (cond (# # # #) (# #) (#t #))
> 684: 6* (and (not (null? (cdr formats))) do-parsing)
> 684: 7* [not ...
> 684: 8* [null? ...
> 684: 9* [cdr #f]
>
> /usr/share/gnucash/scm/qif-import/qif-file.scm:684:24: In procedure cdr in
> expression (cdr formats):
> /usr/share/gnucash/scm/qif-import/qif-file.scm:684:24: Wrong type argument in
> position 1: #f
>
> I have kept the .QIF file if you need to see it.
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list