-
Notifications
You must be signed in to change notification settings - Fork 495
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
Failed to invoke procedure apoc.import.graphml
: Caused by: java.net.MalformedURLException: unknown protocol: d
#3475
Comments
Hi there! thanks for writing in :) You need to write file: at the start, otherwise the url tries to interpret the D: as the url protocol. Try: Hope this helps! |
Hello @gem-neo4j , thank you for replying so quickly. |
OK I have two other problems with both
|
If I myself escape all the "" in the path, i.e. replace Then I am just left with the first error:
|
Hi! So it looks like the fix I supplied you works only for apoc.import.graphml, there does indeed seem to be a bug with |
@gem-neo4j thank you for creating that bug ticket and let me know if there is anything I can do, or information I can provide to help |
@gem-neo4j |
Expected Behavior (Mandatory)
Neo4j APOC procedures are able to import and export from/to an absolute Window path
Actual Behavior (Mandatory)
I have a GitHub repository with DVC to track and pull data files. When pulling the project and data I need the code to directly import (and export) GML data from the repository's data folder, without having to instruct people to move file to the Neo4j project import folder.
The apoc.conf file is set as follows:
Neo4j APOC procedures are unable to export and import from an absolute Windows path, throwing a protocol error on the driver letter.
When running the command
CALL apoc.import.graphml("D:\code\my_repo\data\neo4j\all_members.gml", {})
Neo4j throws the following error:
Failed to invoke procedure
apoc.import.graphml: Caused by: java.net.MalformedURLException: unknown protocol: d
The same error is thrown using the
apoc.export.graphml
procedure.How to Reproduce the Problem
Steps (Mandatory)
On Windows
CREATE DATABASE mydb
CALL apoc.import.graphml("<the full path to the GML file>\<gml file name>", {})
Specifications (Mandatory)
Versions
The text was updated successfully, but these errors were encountered: