Closed bennypowers closed 10 months ago
I'm not sure what is there to be signed into here but the exception is thrown is this:
OfxSharp.OFXParseException: Sign On information not found
at OfxSharp.OFXDocumentParser.Parse(String ofxString)
at OfxSharp.OFXDocumentParser.ParseOfxDocument(String ofxString)
at OfxSharp.OFXDocumentParser.Import(String ofx)
at NickvisionMoney.Shared.Models.Account.ImportFromOFXAsync(String path, String defaultTransactionRGBA)
NickvisionMoney.Shared/Models/Account.cs:line 1428
We're not logging the error to the terminal here. Need to fix that as well.
@bennypowers If possible can you try #763 and see if that is the actual exception being thrown?
I used Builder's "Run Project" button to get this screenshot
Its the same error. Thanks. Just wanted to confirm that the error isn't caused due to trimming the file.
See the OFX specifications: https://financialdataexchange.org/common/Uploaded%20files/OFX%20files/OFX%20Banking%20Specification%20v2.3.pdf
Your document is missing the SIGNON section which is required per the specifications. I'm going to have Denaro insert a dummy SIGNON section to an OFX document if it isn't present and avoid crashing...but this is an issue with Toshl and the way they generate OFX docs.
Your account is also missing the LEDGERBAL
section...I've added a dummy one too as it's not used by Denaro but is required as per the ofx spec.
Thank you! I was able to import transactions from Toshl.
However, we've noted that Toshl's ofx exports don't always fit the spec. It also appears from a cursory search of the spec PDF that there's no standard way to assign taxonomy like categories(groups) or tags. The transactions I imported did not retain their taxonomy in Money.
Toshl stores category and tag in the <SIC>
tag in this format: Category;TagA,TagB,TagC
. It seems to me the correct way to address this is to transform the .ofx file myself before importing. Is there documentation available for Denaro's expected format for things like categories, tags, notes, receipts, etc?
As you said yourself, there's no specification in the OFX standard for a standard way of storing groups/categories, tags, etc...
Therefore, when reading OFX files, Denaro will only import transactions.
You could use a CSV file to import more types of data, however that requires a specific format to the CSV which can be found here on Denaro's docs: https://htmlpreview.github.io/?https://raw.githubusercontent.com/NickvisionApps/Denaro/main/NickvisionMoney.Shared/Docs/html/C/import-export.html
I've generated .ofx exports from toshl finance. Here's a redacted minimal repro:
If I remove the emoji and hebrew glyphs, and the tags from the
<SIC>
tag (the;
and everything to the right), it's the same result. Same thing if I change the<CURDEF>
toUSD