# Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure \`apoc.path.subgraphNodes\`: Caused by: org.neo4j.graphdb.NotFoundException: Node\[199446563\] not connected to this relationship\[112111602\]

**URL:** <https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713>\
**Category:** Cypher\
**Tags:** apoc, cypher\
**Created:** [January 17, 2020, 6:06am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713 "2020-01-17T06:06:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeshveer.yadav](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/yeshveer.yadav/32/4634_2.png) [@yeshveer.yadav](https://community.neo4j.com/u/yeshveer.yadav)\
**Post date:** [January 17, 2020, 6:06am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/1 "2020-01-17T06:06:42Z")

</div>

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `apoc.path.subgraphNodes`: Caused by: org.neo4j.graphdb.NotFoundException: Node[199446563] not connected to this relationship[112111602]

can anyone explain why this error is comming

---

<div class="post-metadata">

**Author:** ![nielsson4711](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nielsson4711/32/34707_2.png) [@nielsson4711](https://community.neo4j.com/u/nielsson4711)\
**Post date:** [January 17, 2020, 6:20am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/2 "2020-01-17T06:20:12Z")

</div>

The system explains that an expected condition within the data processed is not given.  
Without any context information its rather difficult to help you out.  
As a starting point, I would investigate the node and relation whose IDs are literally given by using the web client, e.g.:

> MATCH (n)  
> WHERE id(n)=199446563  
> WITH n  
> MATCH (r)  
> WHERE id(r)=112111602  
> RETURN n, r

Examine, if the results match your expectations to model and data.

---

<div class="post-metadata">

**Author:** ![yeshveer.yadav](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/yeshveer.yadav/32/4634_2.png) [@yeshveer.yadav](https://community.neo4j.com/u/yeshveer.yadav)\
**Post date:** [January 17, 2020, 6:50am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/3 "2020-01-17T06:50:03Z")

</div>

MATCH (n)  
WHERE id(n)=199446563  
WITH n  
MATCH (r)  
WHERE id(r)=112111602  
RETURN n, r

this is giving two node..

how i can solve this error .. please help

---

<div class="post-metadata">

**Author:** ![intouch\_vivek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/intouch_vivek/32/4097_2.png) [@intouch\_vivek](https://community.neo4j.com/u/intouch_vivek)\
**Post date:** [January 17, 2020, 8:35am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/4 "2020-01-17T08:35:52Z")

</div>

Hi Yesh,

Looks like APOC is not installed properly.  
try below link to and add the APOC jar manually and update settings file accordingly

> **[GitHub - neo4j-contrib/neo4j-apoc-procedures: Awesome Procedures On Cypher...](https://github.com/neo4j-contrib/neo4j-apoc-procedures)**
>
> Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above...

Regards  
Vivek

---

<div class="post-metadata">

**Author:** ![yeshveer.yadav](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/yeshveer.yadav/32/4634_2.png) [@yeshveer.yadav](https://community.neo4j.com/u/yeshveer.yadav)\
**Post date:** [January 17, 2020, 12:33pm UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/5 "2020-01-17T12:33:08Z")

</div>

> [@Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure \`apoc.path.subgraphNodes\`: Caused by: org.neo4j.graphdb.NotFoundException: Node\[35399801\] not connected to this relationship\[117302253\]](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-35399801-not-connected-to-this-relationship-117302253/13723):
>
> when i run this query MATCH (n:Gluser {GLUSR\_USR\_ID:'6601433'}) CALL apoc.path.subgraphNodes(n, {maxLevel:-1,relationshipFilter:'HAS\_MOBILE|HAS\_PHONE|HAS\_GST|HAS\_CIN|HAS\_PAN|HAS\_EMAIL|HAS\_BANK\_AC|HAS\_IMEI',bfs:true, filterStartNode:false, limit:200000, optional:false}) YIELD node match (node:Gluser) where node.GLUSR\_DISABLE\_ERRMSG\_VALUE in ['Fraud complaint','Payment protection Non-compliance','Multiple bs conflict','Conflict temporary disable'] and node.GLUSR\_USR\_APPROV = 'D' and node \<\> n w…

please see for more details

---

<div class="post-metadata">

**Author:** ![nmalsaud15](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nmalsaud15/32/10152_2.png) [@nmalsaud15](https://community.neo4j.com/u/nmalsaud15)\
**Post date:** [April 22, 2020, 4:17am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/6 "2020-04-22T04:17:12Z")

</div>

MATCH(start:Place{id:'Amsterdam'}),(end:Place{id:'London'})  
CALL gds.alpha.shortestPath.stream({  
nodeProjection:'Place',  
relationshipPorjection:{ROAD:{type:'EROAD',properties:'distance',orientation:'UNDIRECTED'}},  
startNode:start,endNode:end, writeProperty:'distance'})  
YIELD nodeId, cost  
RETURN gds.util.asNode(nodeId).id as name, cost  
**Failed to invoke procedure `gds.alpha.shortestPath.stream`: Caused by: java.lang.IllegalArgumentException: Missing information for implicit graph creation. No value specified for the mandatory configuration parameter `relationshipProjection` (a similar parameter exists: [relationshipPorjection])**

\*\*I got this message when i try to running the code in Neo4j 3.5.17 \*\*  
How I can solve it ??

---

<div class="post-metadata">

**Author:** ![intouch\_vivek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/intouch_vivek/32/4097_2.png) [@intouch\_vivek](https://community.neo4j.com/u/intouch_vivek)\
**Post date:** [April 22, 2020, 7:51am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/7 "2020-04-22T07:51:51Z")

</div>

> [@nmalsaud15](#):
>
> CALL gds.alpha.shortestPath.stream({

Hi @nmalsaud15.

Please check one issue related to spelling of **`relationshipProjection`**

---

<div class="post-metadata">

**Author:** ![nmalsaud15](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nmalsaud15/32/10152_2.png) [@nmalsaud15](https://community.neo4j.com/u/nmalsaud15)\
**Post date:** [April 22, 2020, 8:55pm UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/8 "2020-04-22T20:55:38Z")

</div>

> [@intouch\_vivek](#):
>
> relationshipProjection

Think you It working now

---

<div class="post-metadata">

**Author:** ![nmalsaud15](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nmalsaud15/32/10152_2.png) [@nmalsaud15](https://community.neo4j.com/u/nmalsaud15)\
**Post date:** [April 26, 2020, 5:21am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/9 "2020-04-26T05:21:21Z")

</div>

**CALL algo.closeness.stream("User", "FOLLOWS")  
YIELD nodeId, centrality  
RETURN algo.getNodeById(nodeId).id, centrality  
ORDER BY centrality DESC**

There is no procedure with the name `algo.closeness.stream` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

**I used this code but I got this error and the code looks fine to me.  
How I can solve this problems ?**

---

<div class="post-metadata">

**Author:** ![intouch\_vivek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/intouch_vivek/32/4097_2.png) [@intouch\_vivek](https://community.neo4j.com/u/intouch_vivek)\
**Post date:** [April 27, 2020, 12:25pm UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/10 "2020-04-27T12:25:15Z")

</div>

Have you setup Neo4j Graph algorithm correctly ?

> **[Introduction - Neo4j Graph Data Science](https://neo4j.com/docs/graph-data-science/current/introduction/)**
>
> This chapter provides a brief introduction of the main concepts in the Neo4j Graph Data Science library.

---

<div class="post-metadata">

**Author:** ![nmalsaud15](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nmalsaud15/32/10152_2.png) [@nmalsaud15](https://community.neo4j.com/u/nmalsaud15)\
**Post date:** [April 28, 2020, 2:24am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/11 "2020-04-28T02:24:30Z")

</div>

yes, I did install it before I start working in my project.  
FYI, I installed it in 3.5.17 not the latest one\>

---

<div class="post-metadata">

**Author:** ![intouch\_vivek](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/intouch_vivek/32/4097_2.png) [@intouch\_vivek](https://community.neo4j.com/u/intouch_vivek)\
**Post date:** [April 28, 2020, 10:48am UTC](https://community.neo4j.com/t/neo-clienterror-procedure-procedurecallfailed-failed-to-invoke-procedure-apoc-path-subgraphnodes-caused-by-org-neo4j-graphdb-notfoundexception-node-199446563-not-connected-to-this-relationship-112111602/13713/12 "2020-04-28T10:48:36Z")

</div>

Hope you have updated your configuration file

```auto
dbms.security.procedures.unrestricted=algo.*

```

1. Please check if any of the the procedure is working from the library?
2. If above is not true then definitely either problem is in algo library compatibility or problem in download of the jar file.
3. If answer of point 1) is yes then we will go through in detail to analyse.
