Skip to content

Problems importing .csv file into database #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5av10ur opened this issue Jan 27, 2021 · 5 comments
Closed

Problems importing .csv file into database #116

5av10ur opened this issue Jan 27, 2021 · 5 comments
Labels
type: bug Something isn't working

Comments

@5av10ur
Copy link

5av10ur commented Jan 27, 2021

I'm trying to import a database of spools I have created and have had some issues with the importing process.

I downloaded the sample .csv file and added my records to it ready to import. I selected to replace the existing database rather than append as I was starting from new. When I first started to import it threw an error: "Error parsing value '02.06.2019' for field 'Purchased on [dd.mm.yyyy]': invalid literal for float() 02 06 2019" despite the field being formatted as dd.mm.yyyy as per the other date fields.

After a bit of investigation it turns out that, despite the field header stating that the format for this column is [dd.mm.yyyy] it actually should be [dd.mm.yyyy hh:mm] so I added 00:00 to each field entry which cleared the parsing error. Now, however, it just hangs when parsing the final line. The pop-up window shows "Status: running" and "Parsing/Importing line: 11" (which is the total number of lines in the .csv file including header) but never moves on from this.

To solve this I had to select "Append to Database" rather than Replace. I have no idea why Replace didn't work but I did get the plugin to import the database eventually. I post this in case others have a similar problem and this helps them.

@OllisGit
Copy link
Owner

OllisGit commented Feb 2, 2021

Hi @5av10ur ,

thx for reporting the issue!
Could you please attach the csv file to the issue, so that I can reproduce the error?

@OllisGit OllisGit added status: waitingForFeedback Wating for Customers feedback type: bug Something isn't working labels Feb 2, 2021
@jbbandos
Copy link

jbbandos commented Feb 5, 2021

@OllisGit I am getting the exact same issue that @5av10ur has, that replacing the database fails with the popup showing the "Parsing/Importing line:" with the total number of lines.
I am attaching my CSV in case it helps.
SpoolManager-merged.zip

@5av10ur
Copy link
Author

5av10ur commented Feb 6, 2021 via email

@OllisGit
Copy link
Owner

Hi @5av10ur!

fyi: Answering via email and attaching a file doesn't work in GitHub.
You need to use the WebUI to upload a file.

@OllisGit OllisGit added status: inProgress I am working on it status: inNextRelease Will be implemented/fixed in next release and removed status: analysing status: waitingForFeedback Wating for Customers feedback status: inProgress I am working on it labels May 24, 2021
OllisGit added a commit that referenced this issue May 24, 2021
- PR #161, #117, #133, #134, #153 multi tool support. Big thanks goes to @codingcatgirl
- PR #61, #59 temperature offset. Thanks a lot @WyattNielsen

- E/B #118 use newodometer.py
- E add "implementation-api"

- B #150, #116 CSV import fixed

..other tickets
- #102, #132, #135, #140, #142
@OllisGit
Copy link
Owner

Hi,
in the latest release V1.4.0 the issue should be fixed.

Please test and give me a feedback.

Thx, in advance
Olli

@OllisGit OllisGit added status: waitingForTestFeedback and removed status: inNextRelease Will be implemented/fixed in next release labels May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants