Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-25-2020 07:32 PM
I have installed latest version of APOC procedures which is - https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/tag/4.0.0.12.
I am not able to find many of the procedures available here - https://neo4j.com/docs/graph-algorithms/3.5/labs-procedures/
CALL apoc.convert.toString("abc")
There is no procedure with the name apoc.convert.toString
registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
Do I need to change any configurations or is this procedure deprecated.
Solved! Go to Solution.
05-26-2020 01:40 PM
Hi @sai.nandam
The documentaation states that toString
is a function:
I'm uncertain that it is the intended behavior, but I don't think you can call functions the same way as procedures. I had the same error for apoc.map.merge()
and by skipping CALL
and YIELD
it worked.
Test with the following:
MATCH (n)
apoc.convert.toString(n) AS stringified
RETURN stringified
05-25-2020 09:24 PM
you need to restart the neo4j to use these procedures
05-26-2020 07:46 AM
Hi @12kunal34,
I did the restart, I may mentioned it but many of the procedures are available, only a few are not. I did run the function below and I see 311 procedures available on database while 518 procedures are listed in the link - https://neo4j.com/docs/labs/apoc/current/overview/.
I also went through the debug logs and I see some failures as mentioned in this post - Failed to load apoc. However, the procedures I am trying to use are not one the procedures in the failure log.
CALL dbms.procedures() yield name
RETURN count(name) as cnt
05-26-2020 07:49 AM
05-26-2020 08:14 AM
Hello @Cobra,
Yes, I did had this setting enabled in neo4j.conf. Is there anything else I need to enable?
dbms.security.procedures.unrestricted=apoc.*
Thanks,
Sai
05-26-2020 08:18 AM
If you want to use GDS plugin, you must specify it as well
dbms.security.procedures.unrestricted=apoc.*,gds.*
dbms.security.procedures.whitelist=apoc.*,gds.*
Moreover, which version of Neo4j are you using and is it Neo4j Server (remote server) or Neo4j Desktop (local database)?
Regards,
Cobra
05-26-2020 09:09 AM
@Cobra- I am using Community Edition Neo4j 4.0.3 and Plugin version APOC is 4.0.0.12. It is installed on a RHEL Linux server.
I thought this procedure is from APOC library and I installed GDS too. Added whitelist property with apoc.*, still no luck.
05-26-2020 09:59 AM
Hi Sai,
Download the fresh copy of APOC jar once again and keep it in the folder plugins. Remove the previous APOC jar and restart the database once again
05-26-2020 01:40 PM
Hi @sai.nandam
The documentaation states that toString
is a function:
I'm uncertain that it is the intended behavior, but I don't think you can call functions the same way as procedures. I had the same error for apoc.map.merge()
and by skipping CALL
and YIELD
it worked.
Test with the following:
MATCH (n)
apoc.convert.toString(n) AS stringified
RETURN stringified
All the sessions of the conference are now available online