Importing QIF files

Mike or Penny Novack stepbystepfarm at mtdata.com
Mon Feb 2 10:11:11 EST 2015


(x86)\gnucash\share\gnucash/scm/qif-import/qif-to-gnc.scm:904:16:
Wrong type argument in position 2 (expecting string): #f

Any ideas what this means please?

Yes, I have an idea of what it MIGHT be and this is something we maybe 
should discuss as affecting CSV files as well. Designations like QIF and 
CSV refer to the logical structure of the data file. For example, CSV 
means that there will be variables delimited by commas. But a CSV file 
could be right in the number of variables, the order of the variables, 
and the logical meaning of each variable and STILL be wrong. That's 
because each variable ALSO has a "format".

It isn't enough to know that the variable in a certain position is a 
"number". Was that a number represented as a string? (a sequence of 
numeric characters, for example "123")   Or as the two byte binary value 
X'007b  ?

So a possibility here is that in position two a number is expected 
expressed as a string of digits but instead the data there was a number 
expressed in one of the numeric formats (binary, binary coded decimal, 
etc.). Proper "input editing" can catch mismatches like that.

Michael D Novack


More information about the gnucash-user mailing list