Skip to content

Question: How to re-import CSV item list #2974

Closed

Description

@chunter2

Background information

IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.

Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:

  • [] Reporting an issue of an unmodified OSPOS installation
  • [] Checked open and closed issues and no similar issue was already reported (please make sure you searched!)
  • [] Read README, WHATS_NEW, INSTALL.md and UPGRADE
  • [] Read the FAQ for any known install and/or upgrade gotchas (in specific PHP extensions installed)
  • [] Read the wiki
  • [] Executed any database upgrade scripts if an upgrade pre 3.0.0 (e.g. database/2.4_to_3.0.sql)
  • [] Aware the installation code is in bintray (see README), and GitHub master is for developers only and therefore not complete nor stable

Installation information

  • OSPOS version is: 3.3.2
  • OSPOS git commit hash is:
  • PHP version is:
  • MySQL or MariaDB version is:
  • OS and version is:
  • WebServer is:
  • Selected language is:
  • (If applicable) Docker installation:
  • (If applicable) Installation package for the LAMP/LEMP stack is:

Issue / Bug / Question / New Feature

Is there a way to re-import a CSV item list? I tried importing once and it worked but I need to make some changes. I tried deleting all the items but because they have barcode numbers which aren't changing it won't let me import them again. Is there a way to clear out the deleted items without manually deleting them from the database directly?

Activity

  1. chunter2 commented on Oct 20, 2020

    @chunter2
    ContributorAuthor

    Not sure if this is the way to do this but I was able to re-import by first manually clearing the barcode values for all the items in the database. I used phpmyadmin. Once they were cleared I could delete them from the GUI and then the import worked. The old ones are still in the database but the deleted column is set to 1. Hopefully this doesn't break anything?

    Thanks

  2. stale commented on Nov 19, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. jekkos commented on Nov 20, 2020

    @jekkos
    Member

    If you have the old items deleted then it might be fine. I think @objecttothis did quite some improvements to the import that is now open in a PR which I will try to review very soon

  4. objecttothis commented on Nov 20, 2020

    @objecttothis
    Member

    Yes, with my PR you will now be able to do an item update by including the item_id of the item you want to re-import, correct or add data to.

  5. stale commented on Dec 20, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  6. objecttothis commented on Dec 20, 2020

    @objecttothis
    Member

    This needs to stay open until we merge #1412 #3029

  7. linked a pull request that will close this issueImport update rework (#1412) #3029on Dec 20, 2020
  8. self-assigned this
    on Dec 20, 2020
  9. added this to the 3.4.0 milestone on Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions