Skip to content

Commit c843c74

Browse files
committed
Add 42NAB
1 parent 0d4d229 commit c843c74

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369
**** xref:errors/gql-errors/42NA8.adoc[]
370370
**** xref:errors/gql-errors/42NA9.adoc[]
371371
**** xref:errors/gql-errors/42NAA.adoc[]
372+
**** xref:errors/gql-errors/42NAB.adoc[]
372373
**** xref:errors/gql-errors/42NFC.adoc[]
373374
**** xref:errors/gql-errors/42NFD.adoc[]
374375
**** xref:errors/gql-errors/42NFE.adoc[]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
= 42NAB
2+
3+
== Status description
4+
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
40+
----
41+
42+
ifndef::backend-pdf[]
43+
[discrete.glossary]
44+
== Glossary
45+
46+
include::partial$glossary.adoc[]
47+
endif::[]

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,10 @@ Status description:: error: syntax error or access rule violation - system datab
15081508

15091509
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.
15101510

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+
15111515
=== xref:errors/gql-errors/42NFC.adoc[42NFC]
15121516

15131517
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)