-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OFX cannot be imported by Denaro #327
Comments
Related issue on the Denaro issue tracker: NickvisionApps/Denaro#813 |
Do you have an idea what is missing in the generated OFX file? |
Nope. Here's a redacted version of the generated file (after passing it through <?xml version="1.0"?>
<!--
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:UTF-8
CHARSET:NONE
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:NONE
-->
<OFX>
<SIGNONMSGSRSV1>
<SONRS>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
</STATUS>
<DTSERVER>20241210194354</DTSERVER>
<LANGUAGE>ENG</LANGUAGE>
</SONRS>
</SIGNONMSGSRSV1>
<BANKMSGSRSV1>
<STMTTRNRS>
<TRNUID>0</TRNUID>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
</STATUS>
<STMTRS>
<CURDEF>EUR</CURDEF>
<BANKACCTFROM>
<BANKID>987654321</BANKID>
<ACCTID>123456789</ACCTID>
<ACCTTYPE>CHECKING</ACCTTYPE>
</BANKACCTFROM>
<BANKTRANLIST>
<DTSTART>20241109</DTSTART>
<DTEND>20241208</DTEND>
<STMTTRN>
<TRNTYPE>POS</TRNTYPE>
<DTPOSTED>20241206</DTPOSTED>
<DTUSER>20241206</DTUSER>
<TRNAMT>-100.50</TRNAMT>
<FITID>20241206abcdefghijklmnop</FITID>
<NAME>Name of recipient</NAME>
<MEMO>Foo bar GIROCARD transaction</MEMO>
<CURRENCY>
<CURSYM>EUR</CURSYM>
</CURRENCY>
</STMTTRN>
</BANKTRANLIST>
<LEDGERBAL>
<BALAMT>9999.99</BALAMT>
<DTASOF>20241208000000</DTASOF>
</LEDGERBAL>
</STMTRS>
</STMTTRNRS>
</BANKMSGSRSV1>
</OFX> |
Is there a OFX file supported by the Denaro importer available, that can be used as reference? |
I have never heard of Denaro before. Try asking denaro devs for an example OFX they support. Maybe we can find the difference then. |
oops, sorry, asked that question in the wrong bugtracker :D |
I did some digging in the Denaro code and managed to modify the ofx file so that it's accepted. Denaro uses https://github.com/afonsof/OfxSharp internally. Here's what I found to be the issue:
|
So, according to the headers found in the generated ofx file, ofxstatement exports OFX 1.0.2. CommentsRegarding the XML/SGML comments, the OFX 1.0.2 spec's section 2.2 "Open Financial Exchange Headers" says:
Also, sec. 2.3.3 "Comments Not Supported" explains that:
So I guess the SGML comment delimiters written by ofxstatement are indeed wrong. Line Endings (CR LF vs. LF)The spec doesn't say anything about line endings. However, sec. 1.2.1 "Data Transport" states the following:
HTTP headers require CR LF (cf. RFC 9112, sec. 2.1, so I think it can be assumed that CR LF is also expected for the OFX headers as well. The OFX 1.6 spec explicitly mentions that it needs to be CR LF:
Therefore I think that ofxstatement should always use CR LF ( Encoding / CharsetSection 5.1 "Language and Encoding" of the spec states:
This means that the I tried to use |
@Holzhaus if the problem is that ofxstatement declares a very old OFX version, I would rather upgrade the version instead of adhering to a standard from 1997. We need to support unicode properly in the output. Going back to cp1252 is not really an option. |
The OFX files generated by this tool cannot be imported by the personal financing app Denaro (GitHub, FlatHub).
Import fail with "Nothing to Import". I guess some fields expected by Denaro are missing.
The text was updated successfully, but these errors were encountered: