I noticed that the QIF import code crashes Gnucash if you specify an
invalid filename. I found this when I attempted to specify *.qif
for the filename. Then I noticed it again when I mistyped a valid
filename. After a little careful typing, I imported most of my accounts.
Then it crashed when I tried to import a brokerage account with
securities. The error was:
gnucash: [D] "Running functions on hook "main-window-opened-hook
#<procedure gnc:extensions-menu-setup (win)>
#<procedure gnc:report-menu-setup (win)>
/usr/local/share/gnucash/scm/qif-import/qif-file.scm:240:30: In procedure string
-append in expression (string-append "-" (qif-xtn:num-shares current-xtn)):
/usr/local/share/gnucash/scm/qif-import/qif-file.scm:240:30: Wrong type argument
: 78.0
Also, I had an idea regarding duplicate transactions during QIF importing.
Since the QIF files are now being imported as a batch process, you can make
the assumption that if a transfer exists between two accounts that are
being imported, it should appear in both accounts. If a transaction appears
as a transfer between two accounts that are being imported, and it does
NOT contain the same transaction in both files, then that situation is
an error and should be flagged. This idea is the exact opposite of the
normal case where the duplicates are considered the error condition.
Maybe with an assumption like this it could be possible to relax the
restrictions on detecting a duplicate transaction, and then more
things would match.
Gerald
Bill Gribble wrote:
>
> Gerald Champagne <[EMAIL PROTECTED]> writes:
> > Here are the results of a crash caused by the latest QIF import code
> > on my system. I know that the QIF import code is in development,
> > so I expect these crashes. Should I report this when it crashes?
> >
> > Here is the output if anyone wants feedback. I can provide sample
> > data if it helps.
>
> This is a problem with string parsing in DOS files. It's fixed by a
> patch I'm preparing now.
>
> Definitely report it when things crash! That's how bugs get located
> and exterminated.
>
> b.g.
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]