java.io.FileNotFoundException when calling spatial.importShapefileToLayer


(Msafder) #1

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)


(Benoit Simard) #2

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