Skip to content

Commit fdb9faf

Browse files
Update 22N69 and 22N71 to have more consistent wording when compared to the corresponding constraint errors (#338)
Updated in neo-technology/neo4j#31435 (merged the day after cutoff for 2025.06) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 1bde802 commit fdb9faf

File tree

3 files changed

+52
-4
lines changed

3 files changed

+52
-4
lines changed

modules/ROOT/pages/errors/gql-errors/22N69.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
1+
:page-role: changed-2025.07
2+
13
= 22N69
24

35
== Status description
4-
error: data exception - index does not exist. The index specified by `{ <<idxDescrOrName>> }` does not exist.
6+
error: data exception - index does not exist. The index `{ <<idxDescrOrName>> }` does not exist.
7+
8+
9+
== Example scenario
10+
11+
For example, try to drop a non-existing index:
12+
13+
[source,cypher]
14+
----
15+
DROP INDEX `nonExisting`
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/50N10.adoc[50N10].
19+
This error has a cause with GQLSTATUS 22N69 and status description:
20+
21+
[source]
22+
----
23+
error: data exception - index does not exist. The index 'nonExisting' does not exist.
24+
----
525

626

727
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/22N71.adoc

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1+
:page-role: changed-2025.07
2+
13
= 22N71
24

35
== Status description
4-
error: data exception - index with the same name already exists. An index with the same name already exists: `{ <<idx>> }`.
6+
error: data exception - duplicated index name. An index with the same name already exists: `{ <<idx>> }`.
7+
8+
9+
== Example scenario
10+
11+
For example, try to create an index when there is another existing index with that name:
12+
13+
Given:
14+
[source,cypher]
15+
----
16+
CREATE INDEX `myIndex` FOR (n:Person) ON (n.name)
17+
----
18+
19+
Then, when attempting to create:
20+
[source,cypher]
21+
----
22+
CREATE INDEX `myIndex` FOR (n:Book) ON (n.title)
23+
----
24+
25+
You will receive an error with GQLSTATUS 22N71 and status description:
26+
27+
[source]
28+
----
29+
error: data exception - duplicated index name. An index with the same name already exists: `myIndex`
30+
----
531

632

733
ifndef::backend-pdf[]

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,17 +414,19 @@ Status description:: error: data exception - duplicated constraint name. A const
414414

415415
Status description:: error: data exception - dependent constraint managed individually. Dependent constraints cannot be managed individually and must be managed together with its graph type.
416416

417+
[role=label--changed-2025.07]
417418
=== xref:errors/gql-errors/22N69.adoc[22N69]
418419

419-
Status description:: error: data exception - index does not exist. The index specified by `{ <<idxDescrOrName>> }` does not exist.
420+
Status description:: error: data exception - index does not exist. The index `{ <<idxDescrOrName>> }` does not exist.
420421

421422
=== xref:errors/gql-errors/22N70.adoc[22N70]
422423

423424
Status description:: error: data exception - equivalent index already exists. An equivalent index already exists: `{ <<idxDescrOrName>> }`.
424425

426+
[role=label--changed-2025.07]
425427
=== xref:errors/gql-errors/22N71.adoc[22N71]
426428

427-
Status description:: error: data exception - index with the same name already exists. An index with the same name already exists: `{ <<idx>> }`.
429+
Status description:: error: data exception - duplicated index name. An index with the same name already exists: `{ <<idx>> }`.
428430

429431
=== xref:errors/gql-errors/22N73.adoc[22N73]
430432

0 commit comments

Comments
 (0)