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 standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
5
+
6
+
== Explanation
7
+
A standalone call of a procedure does not support a WHERE clause, i.e. it does not support the filtering of the procedure result.
8
+
Either remove the WHERE clause or add a RETURN clause after the call to it into an in-query call.
9
+
10
+
== Example scenario
11
+
For example, trying to filter the result of the procedure `db.labels()` in a standalone call:
12
+
13
+
[source,cypher]
14
+
----
15
+
CALL db.labels() YIELD label WHERE label <> 'A'
16
+
----
17
+
18
+
An error will be thrown with GQLSTATUS 42NAB and the following status description:
19
+
20
+
[source]
21
+
----
22
+
error: syntax error or access rule violation - not supported standalone call. WHERE is not supported in standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
23
+
----
24
+
25
+
== Possible solutions
26
+
27
+
You can abstain from filtering to get a valid query:
28
+
29
+
[source,cypher]
30
+
----
31
+
CALL db.labels() YIELD label
32
+
----
33
+
34
+
However, to filter the result of the procedure `db.labels()` use an in-query call by adding a RETURN clause:
35
+
36
+
.Query
37
+
[source, cypher]
38
+
----
39
+
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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1508,6 +1508,10 @@ Status description:: error: syntax error or access rule violation - system datab
1508
1508
1509
1509
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.
1510
1510
1511
+
=== xref:errors/gql-errors/42NAB.adoc[42NAB]
1512
+
1513
+
Status description:: error: syntax error or access rule violation - not supported standalone call. WHERE is not supported in standalone call. Use `CALL ... YIELD ... WHERE ... RETURN ...` instead.
1514
+
1511
1515
=== xref:errors/gql-errors/42NFC.adoc[42NFC]
1512
1516
1513
1517
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