Skipped lines are checked in CSV import #177

Closed
uu1101 opened this Issue Apr 25, 2014 · 1 comment

Projects

None yet

2 participants

@uu1101
uu1101 commented Apr 25, 2014

The CSV file served by my bank includes a header. When trying to skip it with the skip rule, Hledger throws an error indicating that the number of fields don't match. In my opinion, Hledger should not check skipped lines except for finding where they end.

The following is an example of the CSV header and a pair of transactions:

"Kontonummer:","1030653008 /  Internet-Konto"
""
"Von: ","26.03.2013"
"Bis: ","25.04.2014"
"Kontostand am 25.04.2014:",""
""
"Buchungstag","Wertstellung ","Buchungstext","Auftraggeber / Beguenstigter ","Verwendungszweck","IBAN / Kontonummer ","BIC / Bankleitzahl","Betrag (EUR)"
"23.04.2014","23.04.14","","","","","","-30,78"
"23.04.2014","23.04.14","","","","","","-55,40"

The following rule file triggers the error:

skip 7
@uu1101
uu1101 commented May 11, 2014

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment