Skip to content
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

The header in a Wells Fargo .qfx file contains no newlines #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boogiewookie
Copy link

OFXHEADER:100DATA:OFXSGMLVERSION:102SECURITY:NONEENCODING:USASCIICHARSET:1252COMPRESSION:NONEOLDFILEUID:NONENEWFILEUID:NONE

When such a header is found, insert a newline before each known key. If unknown key:values are added, they will end up appended to the preceding value and throw "ValueError: too many values to unpack" on the line.split() a few lines down.

…lines:

OFXHEADER:100DATA:OFXSGMLVERSION:102SECURITY:NONEENCODING:USASCIICHARSET:1252COMPRESSION:NONEOLDFILEUID:NONENEWFILEUID:NONE

When such a header is found, insert a newline before each known key.
Unknown key:values will end up appended to the preceding value and
throw "ValueError: too many values to unpack" on the line.split() a
few lines down.
@jeanralphaviles
Copy link

If you pre-process the .qfx file with sed, you can get it to be read by ofxparse.

$ sed -i 's/^.*<OFX>/<OFX>/g' statement.qfx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants