Skip to content

CSV import shows contradictory toasts ("Import failed" + "Import successful") when HB.sold_* columns are present; no items imported #1381

@nelsonni

Description

@nelsonni

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:

  1. "Import failed. Please try again later."
  2. "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

Image

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?

  1. Create a CSV using the standard HB.* column set, including any of:
    HB.sold_to, HB.sold_time, HB.sold_price, HB.sold_notes
  2. Leave the sold-field cells empty (items have not been sold)
  3. Go to Tools → Import Items and upload the CSV
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕷️ bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions