Sample OFX and (unrelated?) crash: was: another odd, new ofximport issue (auto import to closed account/category)

Jack ostroffjh at users.sourceforge.net
Fri Feb 9 22:39:16 UTC 2018


I'm leaving this threaded, since it is related, but it can be treated  
independently.

Start kmymoney 5.0.0 with no opened file ("kmymoney -n")

Create a new file
- I entered no personal information
- I chose US Dollar as currency
- I chose the template with no categories
- no starting checking account
- save the file

- create new account - investment account with brokerage account

- edit brokerage account to add starting balance

- save file

- File/Close -> crash with error about uncaught exception related to  
the investment account.

It is not clear to me how this relates to the issue of the ofx import  
creating a category as a closed account, because I cannot reproduce  
that yet.  I do have a sample ofx file which imports two transactions,  
in process creating a category "_DIVIDEND" (which is not mentioned in  
the ofx file.)  but the category and both transactions are editable.   
However, the above crash does occur if trying to close the file I've  
attached that ofx file, just in case, but I suspect finding the cause  
of this crash is higher priority.  (Note that I have edited the ofx  
file to alter the account number, and to remove the positions and  
balances of equities.)

Jack
-------------- next part --------------
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:TYPE1
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:NONE

<OFX>
  <SIGNONMSGSRSV1>
    <SONRS>
      <STATUS>
        <CODE>0
        <SEVERITY>INFO
        <MESSAGE>SUCCESS
      </STATUS>
      <DTSERVER>20180209170838.704[-5:EST]
      <LANGUAGE>ENG
      <DTPROFUP>20180209170838.704[-5:EST]
      <FI>
        <ORG>Merrill Lynch & Co., Inc.
        <FID>5550
      </FI>
    </SONRS>
  </SIGNONMSGSRSV1>
  <INVSTMTMSGSRSV1>
    <INVSTMTTRNRS>
      <TRNUID>0
      <STATUS>
        <CODE>0
        <SEVERITY>INFO
        <MESSAGE>SUCCESS
      </STATUS>
      <INVSTMTRS>
        <DTASOF>20180209170838.816[-5:EST]
        <CURDEF>USD</CURDEF>
        <INVACCTFROM>
          <BROKERID>www.mldirect.ml.com
          <ACCTID>12345
        </INVACCTFROM>
        <INVTRANLIST>
          <DTSTART>20180131110000.000[-5:EST]
          <DTEND>20180131110000.000[-5:EST]
          <INCOME>
            <INVTRAN>
              <FITID>20180131AF194433113637298
              <DTTRADE>20180131110000.000[-5:EST]
              <DTSETTLE>20180131110000.000[-5:EST]
              <MEMO>Bank Interest: ML BANK DEPOSIT PROGRAM FROM 12/30 THRU 01/30
            </INVTRAN>
            <SECID>
              <UNIQUEID>990286916
              <UNIQUEIDTYPE>CUSIP
            </SECID>
            <INCOMETYPE>INTEREST
            <TOTAL>0.32
            <SUBACCTSEC>CASH
            <SUBACCTFUND>CASH
          </INCOME>
          <INCOME>
            <INVTRAN>
              <FITID>20180131AF194433113637297
              <DTTRADE>20180131110000.000[-5:EST]
              <DTSETTLE>20180131110000.000[-5:EST]
              <MEMO>Bank Interest: ML BANK DEPOSIT PROGRAM
            </INVTRAN>
            <SECID>
              <UNIQUEID>990286916
              <UNIQUEIDTYPE>CUSIP
            </SECID>
            <INCOMETYPE>INTEREST
            <TOTAL>42
            <SUBACCTSEC>CASH
            <SUBACCTFUND>CASH
            <TAXEXEMPT>N
          </INCOME>
        </INVTRANLIST>
      </INVSTMTRS>
    </INVSTMTTRNRS>
  </INVSTMTMSGSRSV1>
</OFX>


More information about the KMyMoney-devel mailing list