[Bug]: Trailing space in category name results in unmatched category during import #1328

Closed
opened 2026-02-28 19:40:35 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Bostrolicious on GitHub (Aug 13, 2024).

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

I exported transactions from an account in Actual, then imported them into a new empty account for testing purposes. One category was not parsed correctly during import - I noticed that the category had a trailing space in the name. Presumably the import function removes this and then fails to match it as a result (I verified that the space was preserved in the exported .csv).
Test-export.csv is an export from a demo budget with two transactions, one that works correctly and one that doesn't because of a trailing space.

The trailing space in the category name was not intentional on my part - I have removed it in my budget and everything works perfectly. I don't know if the current import behaviour should even be changed, but I thought it would be best to report anyway.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox

Operating System

Windows 11

Originally created by @Bostrolicious on GitHub (Aug 13, 2024). ### Verified issue does not already exist? - [X] I have searched and found no existing issue - [X] I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file) ### What happened? I exported transactions from an account in Actual, then imported them into a new empty account for testing purposes. One category was not parsed correctly during import - I noticed that the category had a trailing space in the name. Presumably the import function removes this and then fails to match it as a result (I verified that the space was preserved in the exported .csv). [Test-export.csv](https://github.com/user-attachments/files/16598382/Test-export.csv) is an export from a demo budget with two transactions, one that works correctly and one that doesn't because of a trailing space. The trailing space in the category name was not intentional on my part - I have removed it in my budget and everything works perfectly. I don't know if the current import behaviour should even be changed, but I thought it would be best to report anyway. ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Firefox ### Operating System Windows 11
GiteaMirror added the good first issuebug labels 2026-02-28 19:40:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1328