# Calling Custom procedures in Neo4j 5.24.x is having issue

**URL:** <https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100>\
**Category:** Procedures & APOC\
**Tags:** apoc, cypher\
**Created:** [October 21, 2024, 5:50pm UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100 "2024-10-21T17:50:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayabharathreddy.mal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jayabharathreddy.mal/32/32728_2.png) [@jayabharathreddy.mal](https://community.neo4j.com/u/jayabharathreddy.mal)\
**Post date:** [October 21, 2024, 5:50pm UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/1 "2024-10-21T17:50:36Z")

</div>

Hi  
I am trying to create custom procedure as in

> **[Custom, Cypher Based Procedures and Functions - APOC Extended Documentation](https://neo4j.com/labs/apoc/5/cypher-execution/cypher-based-procedures-functions/)**
>
> This section describes how to register custom Cypher statements as procedures and functions

but while calling the custom procedure getting `Neo.DatabaseError.General.UnknownError`

 ![Screenshot 2024-10-21 at 11.15.01 PM](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/1/d/1d3f624a3c3cd0801322a5e7aea48c6135cb82ec.jpeg)

Version : Neo4j 5.24.2 enterprise edition  
/5.23.0/apoc-5.23.0-extended.jar  
2.10.1/neo4j-graph-data-science-2.10.1.jar

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [October 22, 2024, 3:35am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/2 "2024-10-22T03:35:31Z")

</div>

Can you provide the code to define the custom procedure.

---

<div class="post-metadata">

**Author:** ![jayabharathreddy.mal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jayabharathreddy.mal/32/32728_2.png) [@jayabharathreddy.mal](https://community.neo4j.com/u/jayabharathreddy.mal)\
**Post date:** [October 22, 2024, 7:16am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/3 "2024-10-22T07:16:34Z")

</div>

`CALL apoc.custom.installProcedure('answerInteger() :: (answer::INT)', 'RETURN 42 as answer')`

---

<div class="post-metadata">

**Author:** ![jayabharathreddy.mal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jayabharathreddy.mal/32/32728_2.png) [@jayabharathreddy.mal](https://community.neo4j.com/u/jayabharathreddy.mal)\
**Post date:** [October 22, 2024, 7:17am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/4 "2024-10-22T07:17:24Z")

</div>

We have some unit tests written and its failing, so tested with the example provided in the docs and it too failed

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [October 22, 2024, 9:00am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/5 "2024-10-22T09:00:38Z")

</div>

what version are you using?

I was able to get it working with version 5.23 (the extended apoc jar is not posted for 5.24).

 ![Screenshot 2024-10-22 at 4.58.57 AM](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/9/3/93aa69c9b86ece206fdefddd4ed8a669270ee7e4.png)

 ![Screenshot 2024-10-22 at 4.58.32 AM](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/a/d/adc0250819deac0f43fd4a0687c9ba5733fe401c.png)

---

<div class="post-metadata">

**Author:** ![jayabharathreddy.mal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jayabharathreddy.mal/32/32728_2.png) [@jayabharathreddy.mal](https://community.neo4j.com/u/jayabharathreddy.mal)\
**Post date:** [October 22, 2024, 9:12am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/6 "2024-10-22T09:12:05Z")

</div>

5.23 is working for me too

5.24.x is the one having issue

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [October 22, 2024, 10:49am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/7 "2024-10-22T10:49:42Z")

</div>

I did not find an apoc extended jar for 5.24. Where did you get it?

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [October 22, 2024, 10:58am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/8 "2024-10-22T10:58:20Z")

</div>

I found the repo on GitHub, but I did not find an artifacts section where I usually download the jar. Did you find it or did you build it yourself?

---

<div class="post-metadata">

**Author:** ![jayabharathreddy.mal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jayabharathreddy.mal/32/32728_2.png) [@jayabharathreddy.mal](https://community.neo4j.com/u/jayabharathreddy.mal)\
**Post date:** [October 22, 2024, 11:32am UTC](https://community.neo4j.com/t/calling-custom-procedures-in-neo4j-5-24-x-is-having-issue/71100/9 "2024-10-22T11:32:40Z")

</div>

> [@jayabharathreddy.mal](#):
>
> /5.23.0/apoc-5.23.0-extended.jar

I have mentioned that I have used 5.23 Jar for apoc only but the neo4j database is 5.24
