ofxdirectconnect in aqbanking3 branch

Martin Preuss aquamaniac at gmx.de
Wed Jul 9 05:18:27 EDT 2008


On Mittwoch, 9. Juli 2008, Jerry Jaskierny wrote:
> David Reiser <dbreiser at earthlink.net> said:
> >   WARN <gnc.import.aqbanking> gnc_ab_gettrans: No accountinfo result
> > for this account

When asked for the list of accounts the bank returns the account number as 
say "xxxxx1234". But when returning statements it only returns a substring 
for the account number (e.g. "1234").

Since GnuCash is directly looking for an AccountInfo object for the expected 
account number (in this example "xxxxx1234") it doesn't succeed.

The solution would be for GnuCash to scan the AccountInfos available and 
compare the account number by itself, assuming a match if there is a 
substring match.

Or: rather than calling AB_ImExporterContext_FindAccountInfo() I suggest using 
code like this:


while(ai) {
  const char *s;

  if (s && strstr(expectedAccountNumber, s)!=NULL)

/* ai is now either NULL or the matching AccountInfo */


"Things are only impossible until they're not"

Martin Preuss - http://www.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

More information about the gnucash-devel mailing list