You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must be doing something wrong ... because the CSV import works fine. check the columns that everything is in order and that each cell has what it should have, and if they have barcodes, make sure they are not already in the db
@objecttothis any chance you can improve the import feature to avoid the issues reported above?
Do you mean these?
Please note that ospos (current version) can be picky on what is imported! For example,
empty rows/columns will not work
NULL values will not be imported, for example on the ID column
any value in columns like 'allow alt descr' will enable the option. If you dont want the option enabled leave the column empty.
I need more information on what "empty columns will not work" means. If, by empty columns, it means that if any cell is empty then it kicks an error, then I can change that so that if required cells are empty it will kick an error, but otherwise will process the row without error, but I need clarification.
I can change the code so that it just skips empty rows without error.
Generally the reason for the pickiness is that the CSV import has a powerful ability to mess up data, so the more controlled, the better.
I have plans to implement a feature to give you a csv of which rows failed and the option to import the remaining rows, so that users can get more specific information about what the problem was, as well as quickly fix problems and re-import the remaining. This feature is not at the top of my list right now though.
The 'allow alt descr' and similar fields are textboxes, so it's by design that non-empty cells result in a checked box. If it isn't already, I could modify the code so that NULL, '', ' ' (any number of spaces), 0 and FALSE all make the box unchecked.
If there are other things that I'm missing, please let me know. I can work on all, but the detailed report/optional import successful rows now, but I need more details to begin.
I need more information on what "empty columns will not work" means. If, by empty columns, it means that if any cell is empty then it kicks an error, then I can change that so that if required cells are empty it will kick an error, but otherwise will process the row without error, but I need clarification.
Logically speaking, empty columns (not required ones) will throw an error. Makes sense.
But empty rows should be ignored. But you shouldnt have empty rows on the import file anyway i hope :-)
Generally the reason for the pickiness is that the CSV import has a powerful ability to mess up data, so the more controlled, the better.
This is understood and appreciated!
The 'allow alt descr' and similar fields are textboxes, so it's by design that non-empty cells result in a checked box. If it isn't already, I could modify the code so that NULL, '', ' ' (any number of spaces), 0 and FALSE all make the box unchecked.
With documentation this could be made clear :-)
If there are other things that I'm missing, please let me know. I can work on all, but the detailed report/optional import successful rows now, but I need more details to begin.
Now that you mention it. The error modal (popup) disappears after a few seconds.
It would be nice if this modal would stay displayed until i click "remove" or X.
I don't know if this is related or not but I'm also having a problem importing CSV data. The import was successful and the data is indeed in the database but it still say "No Items to display.". I've install all the necessary stuff (PHP extensions etc). Oh btw this is hosted locally using XAMPP.
@hanisirfan what is the version hash that you are using currently? You should see it in the footer of each page to the right of the version number or under Office -> Configuration -> Setup & Config
It's actually working fine now but before I tried about 2-3 fresh install before. Fresh install means that I delete all the files and drop the database and redo the installation based on the INSTALL.md instruction.
Out of topic:
Can we actually see "Receivings" report just like the other reports? Maybe per day report?
@hanisirfan I try to do fresh install and drop the database but Im still getting this error in item import. can you send me the steps on how you manage to do it and if you can share your items_csv format would be appreciated.
I actually did it couple of times for it to work, I don't know why it doesn't works the first time.
For the CSV file, I downloaded from the system after I installed it. If you still want it maybe later I can share with you. I believe I'm using the latest stable version isn't it @objecttothis
It's actually working fine now but before I tried about 2-3 fresh install before. Fresh install means that I delete all the files and drop the database and redo the installation based on the INSTALL.md instruction.
Out of topic:
Can we actually see "Receivings" report just like the other reports? Maybe per day report?
Thanks.
That build does not include my changes in the #2821 which have not yet been merged into the master because I'm waiting on code reviews by other contributors. I recommend you download one of those builds from bintray and test that to see if it resolves the issue.
For me, after doing couple of reinstall. It actually works and as I said before I don't know what the cause. It's a bit weird because items doesn't show up in the view but actually exist in db. It's become more confusing after it will only show up in view after adding a sale for an item (only that item will be visible in items view but the rest isn't). I'm not an expert, I could help find the cause if I actually are.
I actually did it couple of times for it to work, I don't know why it doesn't works the first time.
For the CSV file, I downloaded from the system after I installed it. If you still want it maybe later I can share with you. I believe I'm using the latest stable version isn't it @objecttothis
@nathanzky the latest stable version does not have my changes and bug fixes from #2821 in it yet.
Activity
andriux1990 commentedon Mar 2, 2020
You must be doing something wrong ... because the CSV import works fine. check the columns that everything is in order and that each cell has what it should have, and if they have barcodes, make sure they are not already in the db
daN4cat commentedon Mar 2, 2020
Have you generated the csv with excel or something else?
myosotisgit commentedon Mar 2, 2020
@nathanzky
I have spend a few hours on the importing of a csv file, generated from a very old version of ospos (v1.x). I finally managed.
Please note that ospos (current version) can be picky on what is imported! For example,
myosotisgit commentedon Mar 2, 2020
Another tip, If you work with 1 or more stock locations use this procedure:
In my example i have 1 location called "winkel" so i changed the default value.
Go to items
download the csv template
Add your articles to this csv.
Upload the csv file.
I have included an xslc example (with my stock location column) that works
Copy of import_items.xlsx
daN4cat commentedon Mar 3, 2020
@objecttothis any chance you can improve the import feature to avoid the issues reported above?
daN4cat commentedon Mar 3, 2020
@myosotisgit thanks a lot for all the tips, very good. I'll add to the FAQ this link.
objecttothis commentedon Mar 3, 2020
Do you mean these?
I need more information on what "empty columns will not work" means. If, by empty columns, it means that if any cell is empty then it kicks an error, then I can change that so that if required cells are empty it will kick an error, but otherwise will process the row without error, but I need clarification.
I can change the code so that it just skips empty rows without error.
Generally the reason for the pickiness is that the CSV import has a powerful ability to mess up data, so the more controlled, the better.
I have plans to implement a feature to give you a csv of which rows failed and the option to import the remaining rows, so that users can get more specific information about what the problem was, as well as quickly fix problems and re-import the remaining. This feature is not at the top of my list right now though.
The 'allow alt descr' and similar fields are textboxes, so it's by design that non-empty cells result in a checked box. If it isn't already, I could modify the code so that NULL, '', ' ' (any number of spaces), 0 and FALSE all make the box unchecked.
If there are other things that I'm missing, please let me know. I can work on all, but the detailed report/optional import successful rows now, but I need more details to begin.
myosotisgit commentedon Mar 3, 2020
Logically speaking, empty columns (not required ones) will throw an error. Makes sense.
But empty rows should be ignored. But you shouldnt have empty rows on the import file anyway i hope :-)
This is understood and appreciated!
With documentation this could be made clear :-)
Now that you mention it. The error modal (popup) disappears after a few seconds.
It would be nice if this modal would stay displayed until i click "remove" or X.
daN4cat commentedon Mar 3, 2020
Let's at least ignore empty rows.
daN4cat commentedon Mar 3, 2020
I agree for the unchecked cases.
14 remaining items
objecttothis commentedon Jul 27, 2020
@myosotisgit We are getting ready to merge #2821, but it would help if you could go to bintray and download the latest build labeled "Item_import_update" and test it out. Tell me if you see any problems: https://bintray.com/jekkos/opensourcepos/opensourcepos/view/files?sort=updated&order=desc#files
myosotisgit commentedon Aug 4, 2020
Sorry for the radio silence. I am dealing with a lot of work and some personal dealings Cannot say when this is over...
objecttothis commentedon Aug 4, 2020
Understood. No worries. Sorry for the added stress you're going through.
hanisirfan commentedon Sep 16, 2020
I don't know if this is related or not but I'm also having a problem importing CSV data. The import was successful and the data is indeed in the database but it still say "No Items to display.". I've install all the necessary stuff (PHP extensions etc). Oh btw this is hosted locally using XAMPP.
objecttothis commentedon Sep 16, 2020
@hanisirfan what is the version hash that you are using currently? You should see it in the footer of each page to the right of the version number or under Office -> Configuration -> Setup & Config
hanisirfan commentedon Sep 16, 2020
OSPOS Installation Info: 3.3.2 - bb309c
It's actually working fine now but before I tried about 2-3 fresh install before. Fresh install means that I delete all the files and drop the database and redo the installation based on the INSTALL.md instruction.
Out of topic:
Can we actually see "Receivings" report just like the other reports? Maybe per day report?
Thanks.
nathanzky commentedon Sep 16, 2020
@hanisirfan I try to do fresh install and drop the database but Im still getting this error in item import. can you send me the steps on how you manage to do it and if you can share your items_csv format would be appreciated.
hanisirfan commentedon Sep 16, 2020
@nathanzky I just follow this instructions.
(Local Install)
https://github.com/opensourcepos/opensourcepos/blob/master/INSTALL.md
I actually did it couple of times for it to work, I don't know why it doesn't works the first time.
For the CSV file, I downloaded from the system after I installed it. If you still want it maybe later I can share with you. I believe I'm using the latest stable version isn't it @objecttothis
objecttothis commentedon Sep 16, 2020
That build does not include my changes in the #2821 which have not yet been merged into the master because I'm waiting on code reviews by other contributors. I recommend you download one of those builds from bintray and test that to see if it resolves the issue.
hanisirfan commentedon Sep 16, 2020
For me, after doing couple of reinstall. It actually works and as I said before I don't know what the cause. It's a bit weird because items doesn't show up in the view but actually exist in db. It's become more confusing after it will only show up in view after adding a sale for an item (only that item will be visible in items view but the rest isn't). I'm not an expert, I could help find the cause if I actually are.
objecttothis commentedon Sep 16, 2020
@nathanzky the latest stable version does not have my changes and bug fixes from #2821 in it yet.
daN4cat commentedon Jan 1, 2021
Now part of #3029.
objecttothis commentedon Jan 1, 2021
Yep. Once we get done with bugfix builds for 3.3.x it should be next in line to get merged into the master.