You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
The GraphML file is successfully imported.
The file successfully opens in other programs supporting GraphML (Gephi, yEd)
Actual Behavior (Mandatory)
An error during the importing process occurs:
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `apoc.import.graphml`: Caused by: java.lang.NullPointerException: Cannot invoke "String.split(String)" because "id" is null
Hi! Thanks for reporting, from what I can see it is because the relationship is before the node, so the node is not found. The error message was not clear though, so I will make sure that is updated :)
Thanks for the explanation. After I rewrote the file such that all the edges occur only after the nodes, the import worked successfully.
Does the GraphML specification state that edges can only reference nodes that already occur earlier in the file? I could not find anything regarding the order of nodes and edges.
If yes, I would create a bug report at Pagegraph such that they produce valid graphml files.
If not, it would be best if apoc could handle such imports. However, a good error message would also help to workaround such issues.
Hi again! I believe it is not a bug for a graphml file to be ordered as such, but more lacking functionality inside APOC. I have added a more useful error message to it, and will create a ticket for APOC to be updated to handle the other cases. However, APOC is under maintenance mode, and allowing any order would require a more in-depth update to the procedure, so I can't promise that that part will be worked on any time soon. Sorry for the inconvenience, and thanks for the report :)
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
The GraphML file is successfully imported.
The file successfully opens in other programs supporting GraphML (Gephi, yEd)
Actual Behavior (Mandatory)
An error during the importing process occurs:
How to Reproduce the Problem
CALL apoc.import.graphml("https://sub.headers.websec.saarland/_hp/common/pagegraph.xml", {})
Simple Dataset (where it's possibile)
Same as
pagegraph.xml
above:Specifications (Mandatory)
Currently used versions
Versions
The text was updated successfully, but these errors were encountered: