Skip to content

[Trading 212 - Docker Container]: Detecting as Revolut and failing #315

@phpsystems

Description

@phpsystems

Describe the bug
A clear and concise description of what the bug is.

The csv file uploaded gets detected as Revolut, throws errors then fails to either import of generate the Json.

Version
Specify the version of Export to Ghostfolio you running. Please also state if you're using Docker or not.

Docker "latest" container.

Expected behavior
A clear and concise description of what you expected to happen.

Detect as Trading 212 and import.

Provide error input
Please provide the CSV line(s) that cause the error (if applicable).
CSV as imported - Totals replaced with XXX

Action Time ISIN Ticker Name Notes ID No. of shares Price / share Currency (Price / share) Exchange rate Total Currency (Total)
Interest on cash ########       Interest on cash 019ca729-cb81-7cbd-a0d3-2378d1f4e140   XXX GBP
Interest on cash ########       Interest on cash 019cac4f-bb3f-7a7b-8474-d3c681ba15f9   XXX GBP
Market buy ######## IE00BK5BQX27 VEUA Vanguard FTSE Developed Europe (Acc) EOF47400766659 XXX XXX GBP 1 XXX GBP
Market buy ######## IE00BFMXYX26 VJPB Vanguard FTSE Japan (Acc) EOF47400775277 XXX XXX GBP 1 XXX GBP
Market buy ######## IE00BK5BQW10 VNRG Vanguard FTSE North America (Acc) EOF47403100128 XXX XXX GBP 1 XXX GBP
Market buy ######## IE00BK5BQZ41 VDPG Vanguard FTSE Developed Asia Pacific ex Japan EOF47400799410 XXX XXX GBP 1 XXX GBP
Market buy ######## IE00BK5BR733 VFEG Vanguard FTSE Emerging Markets (Acc) EOF47403101046 XXX XXX GBP 1 XXX GBP
Market buy ######## IE00BG47K971 VAGS Vanguard Global Aggregate Bond (Acc) EOF47405164539 XXX XXX GBP 1 XXX GBP

Please provide the error message (if applicable)
Logs (in reverse order - attached as well):

2026/03/04 10:10:10 stdout [e] Moving file to output..
2026/03/04 10:10:10 stdout [e] TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:10:10 stdout [e] An error occurred processing.
2026/03/04 10:10:10 stderr [i] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | ETA 0s | Duration: 1772619010s | 0/100
2026/03/04 10:10:10 stdout at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
2026/03/04 10:10:10 stdout at endReadableNT (node:internal/streams/readable:1698:12)
2026/03/04 10:10:10 stdout at Parser.emit (node:events:519:28)
2026/03/04 10:10:10 stdout at Parser. (file:///node_modules/csv-parse/lib/index.js:119:7)
2026/03/04 10:10:10 stdout at  (/src/converters/revolutConverter.ts:83:64)
2026/03/04 10:10:10 stdout at RevolutConverter.processRevolutFile (/src/converters/revolutConverter.ts:144:26)
2026/03/04 10:10:10 stdout at RevolutConverter.isIgnoredRecord (/src/converters/revolutConverter.ts:38:35)
2026/03/04 10:10:10 stdout at Array.some ()
2026/03/04 10:10:10 stdout at  (/src/converters/revolutConverter.ts:38:57)
2026/03/04 10:10:10 stdout TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:10:10 stdout [e] An error occurred while processing the file contents. Stack trace:
2026/03/04 10:10:10 stdout [i] Read CSV file. Start processing..
2026/03/04 10:10:10 stdout [i] Processing file using Revolut converter
2026/03/04 10:10:10 stdout [i] Restored 0 ISIN-symbol pairs and 0 symbols from cache..
2026/03/04 10:10:10 stdout [i] Starting Export to Ghostfolio v__VERSION__
2026/03/04 10:10:10 stdout [i] Determined the file type to be of kind 'revolut'.
2026/03/04 10:10:10 stdout [i] Found from_2026-02-28_to_2026-03-04_MTc3MjYxODY3Mjg3MA (1).csv!
2026/03/04 10:07:10 stderr [i] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | ETA 0s | Duration: 1772618831s | 0/100
2026/03/04 10:07:10 stdout [e] Moving file to output..
2026/03/04 10:07:10 stdout [e] TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:07:10 stdout [e] An error occurred processing.
2026/03/04 10:07:10 stdout at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
2026/03/04 10:07:10 stdout at endReadableNT (node:internal/streams/readable:1698:12)
2026/03/04 10:07:10 stdout at Parser.emit (node:events:519:28)
2026/03/04 10:07:10 stdout at Parser. (file:///node_modules/csv-parse/lib/index.js:119:7)
2026/03/04 10:07:10 stdout at  (/src/converters/revolutConverter.ts:83:64)
2026/03/04 10:07:10 stdout at RevolutConverter.processRevolutFile (/src/converters/revolutConverter.ts:144:26)
2026/03/04 10:07:10 stdout at RevolutConverter.isIgnoredRecord (/src/converters/revolutConverter.ts:38:35)
2026/03/04 10:07:10 stdout at Array.some ()
2026/03/04 10:07:10 stdout at  (/src/converters/revolutConverter.ts:38:57)
2026/03/04 10:07:10 stdout TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:07:10 stdout [e] An error occurred while processing the file contents. Stack trace:
2026/03/04 10:07:10 stdout [i] Read CSV file. Start processing..
2026/03/04 10:07:10 stdout [i] Processing file using Revolut converter
2026/03/04 10:07:10 stdout [i] Restored 0 ISIN-symbol pairs and 0 symbols from cache..
2026/03/04 10:07:10 stdout [i] Starting Export to Ghostfolio v__VERSION__
2026/03/04 10:07:10 stdout [i] Determined the file type to be of kind 'revolut'.
2026/03/04 10:07:10 stdout [i] Found from_2026-02-28_to_2026-03-04_MTc3MjYxODY3Mjg3MA.csv!
2026/03/04 10:05:00 stdout [e] Moving file to output..
2026/03/04 10:05:00 stdout [e] TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:05:00 stdout [e] An error occurred processing.
2026/03/04 10:05:00 stdout at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
2026/03/04 10:05:00 stdout at endReadableNT (node:internal/streams/readable:1698:12)
2026/03/04 10:05:00 stdout at Parser.emit (node:events:519:28)
2026/03/04 10:05:00 stdout at Parser. (file:///node_modules/csv-parse/lib/index.js:119:7)
2026/03/04 10:05:00 stdout at  (/src/converters/revolutConverter.ts:83:64)
2026/03/04 10:05:00 stdout at RevolutConverter.processRevolutFile (/src/converters/revolutConverter.ts:144:26)
2026/03/04 10:05:00 stdout at RevolutConverter.isIgnoredRecord (/src/converters/revolutConverter.ts:38:35)
2026/03/04 10:05:00 stdout at Array.some ()
2026/03/04 10:05:00 stdout at  (/src/converters/revolutConverter.ts:38:57)
2026/03/04 10:05:00 stdout TypeError: Cannot read properties of undefined (reading 'toLocaleLowerCase')
2026/03/04 10:05:00 stdout [e] An error occurred while processing the file contents. Stack trace:
2026/03/04 10:05:00 stdout [i] Read CSV file. Start processing..
2026/03/04 10:05:00 stdout [i] Processing file using Revolut converter
2026/03/04 10:04:57 stderr [i] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | ETA 0s | Duration: 1772618697s | 0/100
2026/03/04 10:05:00 stdout [i] Restored 0 ISIN-symbol pairs and 0 symbols from cache..
2026/03/04 10:04:57 stdout [i] Starting Export to Ghostfolio v__VERSION__
2026/03/04 10:04:57 stdout [i] Determined the file type to be of kind 'revolut'.
2026/03/04 10:04:54 stdout [i] Found from_2026-02-28_to_2026-03-04_MTc3MjYxODY3Mjg3MA.csv!

Additional context
Add any other context about the problem here.

ghostfolio-importer.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions