-
-
Notifications
You must be signed in to change notification settings - Fork 367
CSV import shows contradictory toasts ("Import failed" + "Import successful") when HB.sold_* columns are present; no items imported #1381
Description
First Check
- This is not a feature request
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn't find it.
- I searched the documentation, with the integrated search.
- I already read the docs and didn't find an answer.
- I can replicate the issue inside the Demo install.
Homebox Version
0.24.2
What is the issue you are experiencing?
Description
When importing a CSV that includes the HB.sold_to, HB.sold_time, HB.sold_price, and/or HB.sold_notes columns — even with those cells left empty — the import silently fails and displays two contradictory toast notifications in rapid succession:
- "Import failed. Please try again later."
- "Import successful!"
No items are added to the inventory despite the success toast. Removing all four HB.sold_* columns from the CSV resolves the issue completely.
Expected Behavior
- Empty
HB.sold_*cells are safely ignored, and the import succeeds, or - A single clear error message identifies which field caused the failure
Actual Behavior
Two contradictory toasts fire and zero items are imported, with no indication of which field is at fault.
Workaround
Remove all HB.sold_* columns from the import CSV entirely.
Additional Context
Neither toast provides any actionable detail — there is no indication of which field caused the failure, no error code, and no suggestion for how to resolve it. The only way to identify the root cause is trial and error (in this case, removing the HB.sold_* columns entirely).
How can the maintainer reproduce the issue?
- Create a CSV using the standard
HB.*column set, including any of:
HB.sold_to,HB.sold_time,HB.sold_price,HB.sold_notes - Leave the sold-field cells empty (items have not been sold)
- Go to Tools → Import Items and upload the CSV
- Observe both toasts appear; verify in inventory — no items were added
Deployment
Docker (Linux)
Database Type
SQLite
OS Architechture
x86_64 (AMD, Intel)
Deployment Details
No response