0

I am using Neo4j3.0.1 and for loading a csv file

LOAD CSV WITH HEADERS FROM 'file:///D:/dummy.csv' as line
CREATE (:myData {line})

But it throws an error :

Couldn't load the external resource at: file:/D:/dummy.csv

Note : I've already tried configuring neo4j.conf which was described here

Suggest any other alternative besides placing csv file into import folder.

Community
  • 1
  • 1
parth
  • 1,571
  • 15
  • 24

1 Answers1

1

Try setting dbms.directories.import to D: in neoj4.conf

dbms.directories.import=D:

and after run

LOAD CSV WITH HEADERS FROM 'file:///dummy.csv' as line
CREATE (:myData {line})

EDIT:

As shown in comments the problem was solved by changing the owner of the CSV file location directory, as described in this answer.

sudo chown neo4j:adm <csv file location>
Community
  • 1
  • 1
Bruno Peres
  • 15,845
  • 5
  • 53
  • 89