Giter Site home page Giter Site logo

Comments (8)

jexp avatar jexp commented on July 18, 2024

Did you create the files on the same system that you're running the import?
It uses the default java behavior for treating newlines (which is more or less system specific).

from batch-import.

johowie avatar johowie commented on July 18, 2024

all done in OSX
.csv files were created by mysql workbench
batch-import run in osx bash terminal

from batch-import.

johowie avatar johowie commented on July 18, 2024

also, i only noticed this behaviour when the last column had 1 or more empty values

from batch-import.

jexp avatar jexp commented on July 18, 2024

Can you provide a project or gist with sample files?

from batch-import.

johowie avatar johowie commented on July 18, 2024

I may have been mistaken about the EOL ... it was probably too late in the evening to be doing tests !
Upon retesting it is only occurring when the last column contains one or more empty values.
apologies for not testing better before posting.
test data at:
git://gist.github.com/3759175.git

from batch-import.

johowie avatar johowie commented on July 18, 2024

I also note that I am getting a different error now. as the error mentioned in the gist i posted is:
Exception in thread "main" java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at org.neo4j.batchimport.Importer$Data.split(Importer.java:153)
at org.neo4j.batchimport.Importer$Data.update(Importer.java:169)
at org.neo4j.batchimport.Importer.importNodes(Importer.java:228)
at org.neo4j.batchimport.Importer.main(Importer.java:85)

it does not mention a "NotFoundException: id=29"

I had another bug in what i was doing earlier and it involved a mysql id field skipping values which coincidently was the values 29,30,31.
I cant seem to recreate this initial error

from batch-import.

jexp avatar jexp commented on July 18, 2024

@johowie can you check if the fix in #13 also solved the issue for you?

from batch-import.

johowie avatar johowie commented on July 18, 2024

I can't check right now, but if it fixed the error when there were null values on in the last column. then I expect it would have fixed the problem for me too.

Thanks for sharing your work @jexp !

from batch-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.