You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/index.adoc
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1513,6 +1513,11 @@ Status description:: error: syntax error or access rule violation - system datab
1513
1513
1514
1514
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.
1515
1515
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
+
1516
1521
=== xref:errors/gql-errors/42NFC.adoc[42NFC]
1517
1522
1518
1523
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