Skip to content

Commit 798f0d3

Browse files
hvubrenetapopova
andauthored
Add 42NAB (#397)
Related to fix in neo-technology/neo4j#33588 --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 8af5aba commit 798f0d3

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370
**** xref:errors/gql-errors/42NA8.adoc[]
371371
**** xref:errors/gql-errors/42NA9.adoc[]
372372
**** xref:errors/gql-errors/42NAA.adoc[]
373+
**** xref:errors/gql-errors/42NAB.adoc[]
373374
**** xref:errors/gql-errors/42NFC.adoc[]
374375
**** xref:errors/gql-errors/42NFD.adoc[]
375376
**** xref:errors/gql-errors/42NFE.adoc[]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
:page-role: new-2025.11
2+
= 42NAB
3+
4+
== Status description
5+
error: syntax error or access rule violation - not supported standalone call. `WHERE` is not supported in a standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
6+
7+
== Explanation
8+
A standalone call of a procedure does not support a `WHERE` clause, i.e., it does not support the filtering of the procedure result.
9+
Either remove the `WHERE` clause or add a `RETURN` clause after the call to turn it into an in-query call.
10+
11+
== Example scenario
12+
For example, trying to filter the result of the procedure `db.labels()` in a standalone call:
13+
14+
[source,cypher]
15+
----
16+
CALL db.labels() YIELD label WHERE label <> 'A'
17+
----
18+
19+
An error will be thrown with GQLSTATUS 42NAB and the following status description:
20+
21+
[source]
22+
----
23+
error: syntax error or access rule violation - not supported standalone call. WHERE is not supported in a standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
24+
----
25+
26+
== Possible solutions
27+
28+
You can abstain from filtering to get a valid query:
29+
30+
[source,cypher]
31+
----
32+
CALL db.labels() YIELD label
33+
----
34+
35+
However, if you still want to filter the result of the procedure `db.labels()`, you can add a `RETURN` clause:
36+
37+
.Query
38+
[source, cypher]
39+
----
40+
CALL db.labels() YIELD label WHERE label <> 'A' RETURN label
41+
----
42+
43+
ifndef::backend-pdf[]
44+
[discrete.glossary]
45+
== Glossary
46+
47+
include::partial$glossary.adoc[]
48+
endif::[]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,11 @@ Status description:: error: syntax error or access rule violation - system datab
15131513

15141514
Status description:: error: syntax error or access rule violation - incorrectly formatted graph reference. Incorrectly formatted graph reference `{ <<input>> }`. Expected a single quoted or unquoted identifier. Separate name parts should not be quoted individually.
15151515

1516+
[role=label--new-2025.11]
1517+
=== xref:errors/gql-errors/42NAB.adoc[42NAB]
1518+
1519+
Status description:: error: syntax error or access rule violation - not supported standalone call. `WHERE` is not supported in a standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
1520+
15161521
=== xref:errors/gql-errors/42NFC.adoc[42NFC]
15171522

15181523
Status description:: error: syntax error or access rule violation - auth info validation error. Authentication and/or authorization could not be validated. See security logs for details.

0 commit comments

Comments
 (0)