Citi Credit Card OFX Import Nightmare

Brendan Coupe brendan at coupeware.com
Wed Mar 27 13:05:56 GMT 2019


If the code is the same in KMM 4.8 and KMM 5.0 is it possible something
changed in libofx between the version used by KMM 4.8 and KMM 5.0?

It seems unlikely that Citi is doing something different when Jeff
downloads his oxf file from them but you never know.

----
Brendan Coupe


On Wed, Mar 27, 2019 at 4:44 AM Thomas Baumgart <thb at net-bembel.de> wrote:

> Brendan et al.
>
>
>
> On Dienstag, 26. März 2019 17:09:31 CET Brendan Coupe wrote:
>
>
>
> > I'm running the latest source code from the master branch.
>
> >
>
> > Until late last year I was able to import my Costco Citi credit card
> using
>
> > OFX direct. They changed something so that it no longer works. It used to
>
> > work perfectly so something is different about the ofx/qfx files that
> they
>
> > provide now or something changed in KMM at about the same time.
>
> >
>
> > Since then I have been exporting my qfx/ofx file from the Citi website
> and
>
> > either opening it in KMM directly from Firefox or saving the file and
>
> > importing it to KMM manually.
>
> >
>
> > Since I started downloading the qfx/ofx file late last year I have run
> into
>
> > problems with matching previously imported transactions fairly often. It
>
> > took a while to find a potential cause of the problem but I may have
> found
>
> > it today.
>
> >
>
> > The default is to import all of the transactions in the current statement
>
> > period. This usually works fine for a week or two and then I start
> getting
>
> > duplicate transactions that I imported previously. To minimize the
> damage I
>
> > sometimes restrict the import to more recent transactions. Once I do this
>
> > it appears that the problem will happen on every import until the next
>
> > month.
>
> >
>
> > I just ran into the problem for the first time in this statement cycle. I
>
> > re-imported based on a limited date range. The I tried to cause the
>
> > problem. If I use the same date range for the import I don't get any
>
> > duplicates, if I change the date range I get duplicates.
>
> >
>
> > Looking at the KMM file and the qfx files I can only find one value that
>
> > might be causing the problem.
>
> >
>
> > The two qfx files have the following values set for the same transaction:
>
> >
>
> > <FITID>20190324090005
>
> > <FITID>20190324090006
>
> >
>
> > In my KMM file is see the first value 9the one I imported here:
>
> >
>
> > bankid="ID 20190324090005"
>
> >
>
> > The last digit in FITID value in the qfx file appears to be sequential
>
> > starting with 1 for the first transaction in the qfx file and
> incrementing
>
> > by 1 for each additional transaction. That is, if there are 10
> transactions
>
> > in the qfx file the last on ends in 10.
>
> >
>
> > I suspect this is not following the ofx/qfx spec. This happens with both
>
> > ofx files and qfx files and with manual import of the file or opening it
>
> > with KMM directly from Firefox.
>
>
>
> This is it: the bank screws up. Here's what the OFX 2.2 spec says about
> FITID:
>
>
>
> ---8<---
>
> An FI (or its Service Provider) assigns an <FITID> to uniquely identify a
> financial transaction that can
>
> appear in an account statement. Its primary purpose is to allow a client
> to detect duplicate responses. Open
>
> Financial Exchange intends <FITID> for use in statement download
> applications, where every transaction
>
> (not just those that are client-originated or server-originated) requires
> a unique ID.
>
> ---8<---
>
>
>
> So the main goal "Its primary purpose is to allow a client to detect
> duplicate responses." is not met!!!
>
>
>
> > I suspect that at some point during a billing cycle a older transaction
>
> > slips in early in the sequential list and screws up every transaction
> after
>
> > it.
>
> >
>
> > Is there anything that can be done to correct this in KMM?
>
>
>
> Why is it always KMM (us) to try to fix broken bank software. They are the
> guys who receive the large salaries and should be able to fix it. But then
> they are bankers and not software developers .... Arrrgh.
>
>
>
> So far, the only thing I can thing of is to replace the FITID with some
> internal derived ref value like we do it in KBanking and have an option to
> use that in favor of the FITID for OFX accounts.
>
>
>
> Note: I compared the code between the 4.8 and 5.0 branch. It is identical
> if it comes to the processing of FITID.
>
>
>
> --
>
>
>
> Regards
>
>
>
> Thomas Baumgart
>
>
>
> https://www.signal.org/ Signal, the better WhatsApp
>
> -------------------------------------------------------------
>
> MicroSoft Windows - from the people who brought you edlin
>
> -------------------------------------------------------------
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20190327/3783486f/attachment.html>


More information about the KMyMoney-devel mailing list