Import of qif file to specific account crashes gnucash

David V Herman dvherman at bigfoot.com
Wed Nov 17 13:30:21 EST 2004


I have a strange problem with GNUCash 1-8.9-2 running on Fedore Core 3
(x86_64).

I was importing a series of QIF files successfully, then I installed the
on-line quote package. I now have an account that I am unable to import
QIF files into. I am able to import OFX and QIF files into other
accounts. I have edited the QIF file for the failing account into
several smaller files however still I crash GNUCash.  I mean a real
crash - leaving the file locked. I am able to run GNUCash again, open
with a warning, an immediately close, then reopen successfully.

The import process failes before the screen matching the import files to
existing accounts.  The account that is failing is an asset (broker
investment) with several sub-accounts for the individual investments.

attached is to output from the terminal following the crash and a sample
file causing the failure.


-----------------------------------------------------------

Backtrace:
In /usr/share/gnucash/scm/qif-import/qif-dialog-utils.scm:
 120:  9  (let (# # # # ...) (if # # #))
    ...
 134: 10  (begin (case action (# # #) ...) (if qif-account (begin #
# ...)) ...)
 269: 11* (if qif-account (begin (set! entry #) (if # #) ...))
 270: 12  (begin (set! entry #) (if # #) (qif-map-entry:set-display?!
entry #t) ...)
 272: 13* (if (not entry) (set! entry #))
 273: 14  (set! entry (qif-import:guess-acct qif-account qif-account-
types ...))
 273: 15* [qif-import:guess-acct "Cap. gain (long):CashTEST:Invesco
EquityInc (Core $
In /usr/share/gnucash/scm/qif-import/qif-guess-map.scm:
 239: 16  (let* (# #) (qif-map-entry:set-qif-name! retval acct-
name) ...)
 240: 17* [qif-import:find-similar-acct "Cap. gain
(long):CashTEST:Invesco EquityInc$
 274: 18  (let* (# # #) (for-each # gnc-acct-info) (for-each # same-
type-accts) ...)
 291: 19* [for-each #<procedure #f (gnc-acct)> (# # # # ...)]
In unknown file:
   ?: 20  (if (null? rest) (letrec ((lp #)) (lp list1)) ...)
    ...
   ?: 21  (begin (f (car l)) (lp (cdr l)))
   ?: 22* [#<procedure #f (gnc-acct)> ("Bank Credit" "Bank Credit" #)]
In /usr/share/gnucash/scm/qif-import/qif-guess-map.scm:
 293: 23  (if # #)
 293: 24* [qif-import:possibly-matching-name? "Cap. gain
(long):CashTEST:Invesco Equ$
 317: 25  (or (string=? # #) (string=? # #) (and # #))
In unknown file:
    ...
   ?: 26  [string-match "cap. gain (long):cashtest:invesco equityinc
(core equity" .$
   ?: 27  (let ((rx #) (start #)) (regexp-exec rx str start))
   ?: 28* [gsubr-apply #<primitive-procedure make-regexp> ...]

<unnamed port>: In procedure make-regexp in expression (make-regexp
pattern):
<unnamed port>: Unmatched ( or \(
[dvherman@

-----------------------------------------------------------
-----------------------------------------------------------

Import file
-----------------------------------------------------------
!Type:Invst
D12/12/2003
NCGLong
YInvesco EquityInc (Core Equity
Cc
U606.74
T606.74
MINVESCO CORE EQUITY FUND INVESTOR CLASS
^
D12/12/2003
NBuy
YInvesco EquityInc (Core Equity
I11.079985
Q54.76
Cc
U606.74
T606.74
MReinvest of INVESCO CORE EQUITY FUND INVESTOR CLASS
^

-- 
David V Herman <dvherman at bigfoot.com>



More information about the gnucash-user mailing list