Skip to content

Import with archive overwrites previous files imported on the same day and same rules #2515

@ricklupton

Description

@ricklupton

When using the new source and archive directives in CSV rules (which I like -- thanks!) I have an issue where the archived file in data is overwritten.

This is because the filename is data/RULESFILEBASENAME.TODAYDATE.csv, so running it twice on the same day will overwrite a previous file.

Often I will download some previous months' transactions (in e.g. 2 separate CSV files, one per statement) and import them on the same day to catch up, but this means that only the second file is archived (the first is overwritten).

I'd suggest probably best is to not overwrite existing files but instead add a unique suffix like data/rules_name.2025-12-15.2.csv or similar? Or possibly a higher precision timestamp instead of just the date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WISHSome kind of improvement request or proposal.csvThe csv file format, csv output format, or generally CSV-related.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions