apoc icon indicating copy to clipboard operation
apoc copied to clipboard

apoc.load.json treats windows filepath as relative no matter what

Open Podbrushkin opened this issue 1 year ago • 1 comments

Guidelines

Following this official video: https://www.youtube.com/watch?v=iyjgOR7nBck In neo4j desktop execute this:

call apoc.load.json('C:/Users/user/Desktop/openAlexConcepts/conceptsAll.json') YIELD value RETURN value LIMIT 10

Expected Behavior

A series of dictionaries returned.

Actual Behavior (Mandatory)

Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `apoc.load.json`: Caused by: java.io.IOException: Cannot open file C:\Users\user\.Neo4jDesktop\relate-data\dbmss\dbms-e96d02e2-cf3a-42bf-89f0-1f9608860ce6\import\Users\user\Desktop\openAlexConcepts\conceptsAll.json for reading.

Screenshots (where it's possibile)

image

I don't know. To me filepath I provide looks literally the same as one shown as example in error message above. But it is treated as relative path.

Versions

  • OS: Windows 11
  • Neo4j: DBMS 5.12.0
  • Neo4j-Apoc: APOC 5.12.0

Podbrushkin avatar Oct 06 '23 07:10 Podbrushkin