Skip to content

OFX import cannot handle version 1 of the OFX standard. #8931

@auspex

Description

@auspex

Version

1.12

What browsers are you seeing the problem on?

This problem isn't browser related

What happened?

  • Go to Cash / Reconciliation
  • Create a new Reconciliation report
  • Select all the outstanding transactions
  • in Bank transactions upload select an OFX file
  • in Upload file format choose OFX
  • click on Update
  • I get the error Can't call method "transactions" on an undefined value at lib/LedgerSMB/Reconciliation/Parser/OFX.pm line 31.
Image

What should have happened?

I'm not really sure what should happen as I've never successfully imported an OFX file, but it should at least correctly parse the OFX file.

It's a long time since I used to import OFX files to Quicken and GnuCash, but iirc the banks often play fast and loose with the OFX format. However, this bank is by some metrics in the top ten largest banks in the world, and LSMB should be able to handle it.

The first thing that comes to my mind is that the file is not well-formatted XML, though I don't think I've ever encountered an OFX file that was. In any case, there are ten lines of text before the <OFX> tag:

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

<OFX>

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-workaroundIssue has a workaround and may or may not be closed immediately

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions