Skip to content

Commit 1fa9993

Browse files
renetapopovalidiazuinNataliaIvakinaLojjsJoelBergstrand
authored
Cypher 25 merge dev (#352)
Co-authored-by: Lidia Zuin <[email protected]> Co-authored-by: NataliaIvakina <[email protected]> Co-authored-by: Louise Berglund <[email protected]> Co-authored-by: JoelBergstrand <[email protected]> Co-authored-by: Hannes Voigt <[email protected]> Co-authored-by: Nick Giles <[email protected]> Co-authored-by: Therese Magnusson <[email protected]> Co-authored-by: ConorNeo <[email protected]> Co-authored-by: Balazs Lendvai <[email protected]> Co-authored-by: Satia Herfert <[email protected]>
1 parent f51929d commit 1fa9993

File tree

13 files changed

+119
-150
lines changed

13 files changed

+119
-150
lines changed

antora.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: status-codes
22
title: Status Codes for Errors & Notifications
3-
version: '2025.05'
3+
version: '2025.06'
44
start_page: ROOT:index.adoc
55
nav:
66
- modules/ROOT/content-nav.adoc
77
asciidoc:
88
attributes:
99
page-origin-private: false
10-
neo4j-version: '2025.05'
11-
neo4j-version-exact: '2025.05.0'
12-
neo4j-buildnumber: '2025.05'
10+
neo4j-version: '2025.06'
11+
neo4j-version-exact: '2025.06.0'
12+
neo4j-buildnumber: '2025.06'

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@
151151
**** xref:errors/gql-errors/22NB7.adoc[]
152152
**** xref:errors/gql-errors/22NB8.adoc[]
153153
**** xref:errors/gql-errors/22NB9.adoc[]
154+
**** xref:errors/gql-errors/22NBA.adoc[]
155+
**** xref:errors/gql-errors/22NBC.adoc[]
154156
*** xref:errors/gql-errors/index.adoc#invalid-transaction-state[Invalid transaction state]
155157
**** xref:errors/gql-errors/25G02.adoc[]
156158
**** xref:errors/gql-errors/25N01.adoc[]

modules/ROOT/pages/errors/all-errors.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ This is a complete list of all client errors Neo4j may return, and what they mea
4646
An illegal chain of aliases has been detected.
4747
This request cannot be executed.
4848

49-
| Neo.ClientError.Fabric.AccessMode
50-
| The request could not be completed due to an access mode violation
51-
5249
| Neo.ClientError.General.ForbiddenOnReadOnlyDatabase
5350
| This is a read-only database, writing or modifying the database is not allowed.
5451

@@ -421,9 +418,6 @@ This is a complete list of all database errors Neo4j may return, and what they m
421418
| Neo.DatabaseError.Database.Unknown
422419
| Unknown database management error.
423420

424-
| Neo.DatabaseError.Fabric.RemoteExecutionFailed
425-
| The database was unable to execute a remote part of the statement.
426-
427421
| Neo.DatabaseError.General.IndexCorruptionDetected
428422
|
429423
The request (directly or indirectly) referred to an index that is in a failed state.

modules/ROOT/pages/errors/gql-errors/08N19.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 08N19
22

33
== Status description
4-
error: connection exception - shard execution transient error. Communication with shard `{ <<graph>> }` failed. with message `{ <<msg>> }`.
4+
error: connection exception - shard execution transient error. Communication with shard `{ <<graph>> }` failed with message `{ <<msg>> }`.
55

66

77
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/08N20.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 08N20
22

33
== Status description
4-
error: connection exception - shard execution database error. Communication with shard `{ <<graph>> }` failed. with message `{ <<msg>> }`.
4+
error: connection exception - shard execution database error. Communication with shard `{ <<graph>> }` failed with message `{ <<msg>> }`.
55

66

77
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/08N21.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 08N21
22

33
== Status description
4-
error: connection exception - shard execution client error. Communication with shard `{ <<graph>> }` failed. with message `{ <<msg>> }`.
4+
error: connection exception - shard execution client error. Communication with shard `{ <<graph>> }` failed with message `{ <<msg>> }`.
55

66

77
ifndef::backend-pdf[]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
= 22NBA
2+
3+
== Status description
4+
5+
error: data exception - omitting mandatory field for property type constraints for vectors. Property type constraints for vectors need to define both coordinate type and dimension.
6+
7+
== Example scenario
8+
9+
For example, try to create a property type constraint for a vector, omitting the dimension:
10+
11+
[source,cypher]
12+
----
13+
CREATE CONSTRAINT myConstraint
14+
FOR (n:Label)
15+
REQUIRE n.prop IS :: VECTOR<INTEGER>
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/50N11.adoc[50N11].
19+
This error has a cause detailed in xref:errors/gql-errors/22N90.adoc[22N90], which also has a subsequent cause with GQLSTATUS 22NBA and the status description above.
20+
21+
22+
ifndef::backend-pdf[]
23+
[discrete.glossary]
24+
== Glossary
25+
26+
include::partial$glossary.adoc[]
27+
endif::[]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
= 22NBC
2+
3+
== Status description
4+
5+
error: data exception - index belongs to constraint. Index belongs to constraint `{ <<constrDescrOrName>> }`.
6+
7+
== Scenario
8+
9+
This error code is used when the user tries drop an index belonging to a constraint.
10+
11+
== Possible solution
12+
13+
Drop the constraint instead.
14+
15+
16+
ifndef::backend-pdf[]
17+
[discrete.glossary]
18+
== Glossary
19+
20+
include::partial$glossary.adoc[]
21+
endif::[]

modules/ROOT/pages/errors/gql-errors/42NA8.adoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,38 @@
33
== Status description
44
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `{ <<cmd>> }`.
55

6+
== Explanation
7+
8+
This error occurs as the cause of other exceptions, for example, when you try to:
9+
10+
* Grant or deny privileges to, or revoke privileges from, a role that does not exist.
11+
* Grant or deny privileges to, or revoke privileges from, a role to perform administration commands on a database that does not exist.
12+
* Revoke a role from a user in Cypher 25, where either the role or the user does not exist.
13+
In Cypher 5, this last example gives a notification instead, see xref:notifications/all-notifications.adoc#_neo_clientnotification_security_impossiblerevokecommand[Impossible revoke command].
14+
15+
== Example scenario
16+
17+
For example, given that `role1` exists but `role2` does not, try to grant a privilege to both roles:
18+
19+
[source,cypher]
20+
----
21+
GRANT WRITE ON GRAPH * TO role1, role2
22+
----
23+
24+
[source]
25+
----
26+
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `GRANT WRITE ON GRAPH * NODES * TO role2`.
27+
----
28+
29+
The command returns an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001] and a cause with this GQLSTATUS 42NA8 and the status description above.
30+
The cause has a subsequent cause with GQLSTATUS xref:errors/gql-errors/42N10.adoc[42N10].
31+
32+
[NOTE]
33+
====
34+
The command in the status description might not be the exact command you typed.
35+
Internally, the Neo4j administration commands are separated into more specific sub-commands, and the Cypher shown corresponds to the sub-command that was executed when the error occurred.
36+
====
37+
638
ifndef::backend-pdf[]
739
[discrete.glossary]
840
== Glossary

modules/ROOT/pages/errors/gql-errors/51N31.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
:page-role: changed-2025.06
2+
13
= 51N31
24

35
== Status description
46

5-
error: system configuration or operation exception - not supported. `{ <<item>> }` is not supported in `{ <<context>> }`.
7+
error: system configuration or operation exception - not supported. `{ <<feat>> }` is not supported in `{ <<context>> }`.
68

79

810
ifndef::backend-pdf[]

0 commit comments

Comments
 (0)