reubano / csv2ofx

A Python library and command line tool for converting csv to ofx and qif files
MIT License
195 stars 111 forks source link

Mapping error #94

Open PDA123 opened 1 year ago

PDA123 commented 1 year ago

Here's a problem I'm having and the error resulting. In command line I enter

csv2ofx Discover-RecentActivity-20221004.csv output.ofx

...here's the error that's returned....

Field 'Account' is missing from file. Check mapping option.

I have no idea how to fix this. Any ideas?

ds17f commented 1 year ago

If you check the output from the command you can find a -m option to specify a mapping. I ran it with the parameter abc and it spit back an error showing me the valid mapping types.

csv2ofx: error: argument -m/--mapping: invalid choice: 'abc' (choose from 'abnamro', 'bnp', 'boursorama', 'capitalone', 'creditunion', 'custom', 'default', 'eqbank', 'exim', 'gls', 'ingdirect', 'mdb', 'mint', 'mint_extra', 'mint_headerless', 'mintapi', 'msmoneyreport', 'n26', 'outbank', 'paychex', 'pcmastercard', 'rabobank', 'schwab', 'split_account', 'starling', 'stripe', 'ubs-ch-fr', 'ubs', 'xero', 'yodlee')

Unfortunately I don't see one for my bank so I'll need to use the custom option. I didn't see a discover option so likely you'll need custom as well.