cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

java.io.FileNotFoundException when calling spatial.importShapefileToLayer

I spent some time today trying to import the Shapefile for California today but it looks like there's a bug with the neo4j importer when finding the file. The file I have ends with a ".shp" but for some reason when I pass the path it it wants to find it with an ".dbf" extention then throws this error:

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure spatial.importShapefileToLayer: Caused by: java.io.FileNotFoundException: /gis_osm_buildings_a_free_1.dbf (No such file or directory)

so I renamed the file with the ".dbf" and get the same error:

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure spatial.importShapefileToLayer: Caused by: java.io.FileNotFoundException: /gis_osm_buildings_a_free_1.dbf (No such file or directory)

2 REPLIES 2

Benoit
Graph Buddy

Can you give the query you are using to import it ?
Thanks.

I have the same error

CALL spatial.importShapefileToLayer('geom',"C:\neo4j\import\shapes\soja17.shp")

the error: Failed to invoke procedure spatial.importShapefileToLayer: Caused by: java.io.FileNotFoundException: C:\neo4j\import\shapes\soja17.dbf (No such file or directory)