GnuCash
Contact   Instructions
Bug 798208 - management fee transactions are ignored on OFX import
Summary: management fee transactions are ignored on OFX import
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Import - OFX (show other bugs)
Version: 4.5
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: import
QA Contact: import
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 13:59 EDT by David Reiser
Modified: 2021-09-22 19:28 EDT (History)
4 users (show)

See Also:


Attachments

Description David Reiser 2021-06-09 13:59:00 EDT
Transactions of the form

<INVBANKTRAN>
<STMTTRN><TRNTYPE>DEBIT</TRNTYPE>
<DTPOSTED>20210415172726</DTPOSTED>
<TRNAMT>-25.57</TRNAMT>
<FITID>628934567788</FITID>
<MEMO>MANAGEMENT FEE</MEMO>
</STMTTRN>
<SUBACCTFUND>CASH</SUBACCTFUND></INVBANKTRAN>

are ignored on File>Import>Import OFX/QFX... in Gnucash 4.5. 
If this transaction (plus the lead-in/lead-out tags) is the only transaction present in the file, the importer reports "1 transaction process, no transactions to match".

Gnucash 4.4 and earlier correctly presented the transaction in the matcher window to allow importing.
Comment 1 David Reiser 2021-06-09 16:11:46 EDT
probably results from a change in libofx investment account handling in libofx 10.0.0 described in the release notes:

 - <STMTTRN> fields under an <INVBANKTRAN> are now parsed into an OfxInvestmentTransactionContainer
        - This changes previous behaviour. LibOFX formerly provided an OfxBankTransactionContainer.
          Now it sets data.invtransactiontype_valid true with data.invtransactiontype = OFX_INVBANKTRAN.
          The end result is that the transaction callback now looks like an investment transaction
          (which it is) rather than a banking transaction (which it is not).
Comment 2 John Ralls 2021-09-22 19:19:22 EDT
The problem was that GnuCash's transaction callback thought that transactions without a security id couldn't be investment transactions. I just changed it so that INVBANKTRANS are treated like non-investment transactions.

Fixed for GnuCash 4.7, due this weekend.

Note You need to log in before you can comment on or make changes to this bug.