I keep trying to run a apoc.load.csv procedure in the newest version of Neo4j 3.1.0, and APOC 3.1.0.3.
CALL apoc.periodic.iterate('CALL apoc.load.csv("file:///data.csv",
{sep:",", header:TRUE}) yield map ','
with {map} as map MATCH (t:Tweet{id:toFloat(map.tweet_id)})
SET t.clean_text = map.clean_text,
t.positive_score = toInt(map.nb_positive),
t.negative_score = toInt(map.nb_negative),
t.sentiment_score = toInt(map.score)',
{batchSize:5000, parallel:true})
Error: Failed to invoke procedure apoc.periodic.iterate: Caused by:
org.neo4j.graphdb.QueryExecutionException: Failed to invoke procedure
apoc.load.csv: Caused by: java.lang.RuntimeException: Import from
files not enabled, please set apoc.import.file.enabled=true in your
neo4j.conf
I have tried just running the apoc.load.csv piece and I still get the same error telling me to add the statement to my neo4j.conf file, which I have. I've even restarted my computer.
I was able to run this exact same statement successfully in Neo4j 3.0.6 and APOC 3.0.4.1, but it doesn't work since I upgraded.
I think that this is likely a bug.
If you click on the 'star' in the browser and then under 'System' there is a link to 'Server Configuration'. Run this query to see what Neo4J thinks it has wrt setting.
Part of this looks like:
{
"isIs": "false ",
"name": "apoc.export.file.enabled",
"description": "Configuration attribute",
"type": "java.lang.String",
"isReadable": "true",
"value": "true",
"isWriteable": "false "
},
which indicates that the file import setting is there and correctly formatted.
The question is then why isn't this being honoured? This is as much as I've been able to determine facing the same problem.
Related
I have imported my data into my dbms and installed the plugins APOC (4.2.0.0) and the Graf Data Science Library (1.4.1).
When I open the playground i get the following error:
error-msg
I added following lines into my neo4j config,
dbms.security.procedures.unrestricted=jwt.security.*,apoc.*,gds.*
dbms.security.procedures.allowlist=jwt.security.*,apoc.*,gds.*
but still getting the same error.
I have done a little research and found someone with the same error and he said:
"It turned out to be a problem with the schema - I had a node with a label that had a space in it "
Is that really an option it is not working for me?
I did my import with neo4j-admin like this:
bin/neo4j-admin import --database=neo4j --id-type=INTEGER --multiline-fields=true --skip-duplicate-nodes --skip-bad-relationships=true --nodes=commits=import/nodes-commits.csv --nodes=packages=import/nodes-packages.csv --nodes=users=import/nodes-users.csv --relationships=commits=import/relationship-projects_commits.csv
with some further relationships.
I also tried then newest version of the dbms, apoc and GDS, but the same error came up.
Anybody have any idea if it can be the import or is it some other error.
Thanks a lot
I tried to import my data from Neo4j into Gephi but it doesn't work.
I have the following result in Neo4j :
Failed to invoke procedure apoc.gephi.add: Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 start byte 0xfb at [Source: (apoc.export.util.CountingInputStream); line: 1, column: 136]
As previously mentioned, it looks like neo4j is not exporting using UTF-8, so that, I would check how neo4j is generating the output.
Another possibility is that, when neo4j writing the output, something went slightly wrong.
I got this very same problem in the past when concurrently managing content in a file.
A thread crashed and closed "not correctly enough" the file. I mean, when reviewing the file, everything looks pretty normal, but some characters have been introduced which are not UTF-8. A tool like Atom can help you.
Best
I am trying to update Blitz to the latest version '7.95', #VersionDate = '20200506'. I get the following error
Procedure [s p_Blitz], Line 5863Incorrect syntax near 'FROM A'.
The other error i am getting is
Procedure [s p Blitz Cache]Line 4814 Invalid column name pages_k b.
Is their a fix for this error?
For anyone who is interested this is all of procedures that will break when attempting to update.
The module 'sp_AllNightLog' depends on the missing object 'master.dbo.DatabaseBackup'. The module will still be created; however, it cannot run successfully until the object exists.
The module 'sp_AllNightLog' depends on the missing object 'master.dbo.DatabaseBackup'. The module will still be created; however, it cannot run successfully until the object exists.
Msg 102, Level 15, State 1, Server [YourServerName], Procedure sp_Blitz, Line 5863
Incorrect syntax near 'FROMA'.
The module 'sp_BlitzFirst' depends on the missing object 'sp_BlitzWho'. The module will still be created; however, it cannot run successfully until the object exists.
You're running the Install-All-Scripts.sql, which as you might guess from its name, installs all of the First Responder Kit scripts. However, some of those have dependencies on other third party objects.
If you're only trying to update sp_Blitz, either run just sp_Blitz.sql, or run the Install-Core-Blitz-No-Query-Store.sql.
I am trying to follow Mark and Amy's Medium post about link prediction with NEO4J, Link Prediction with NEO4J
Working great until I need to run the triangle detection algorithm:
CALL algo.triangleCount('Author', 'CO_AUTHOR_EARLY', {
write:true,
writeProperty:'trianglesTrain',
clusteringCoefficientProperty:'coefficientTrain'})
I get the following error:
`ERROR` Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure `algo.triangleCount`: Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
As far as I can tell I have run everything else correctly (getting the same results in the python part etc.)
I was running Neo4j (enterprise) 3.5.11 when I first got the error, upgraded to 3.5.12 - still have the issue. I have the Apoc and Graph Algo plugins installed
I've installed a neo4j in my lab's centOS server.I want to import a json file into neo4j.
I've already put the apoc-3.3.0.1.jar in the NEO4J_HOME/plugins and add the
apoc.import.file.enabled=true
into neo4j.conf
Then i open the web UI of neo4j with my PC(windows 10) and input the cypher
call apoc.load.json("file:///C://Users//stefen//Desktop//test.json")yield value as company
create(c:company)
with c,company
unwind company.organizationInformationList as a
set c = a
The json file is saved in my pc.
And error info is:
Failed to invoke procedure apoc.load.json: Caused by: java.lang.RuntimeException: Can't read url file:/C://Users//stefen//Desktop//test.json as json: /C:/Users/stefen/Desktop/test.json
I have no idea where is the problem.Please help me.
PS:my neo4j version is 3.3.1
I'm sorry. I have made a mistake that i forget to put the data file in my server.
Now i have solved the question.