diff --git a/modules/ROOT/pages/errors/gql-errors/22N69.adoc b/modules/ROOT/pages/errors/gql-errors/22N69.adoc index 4ee05c3b..7f4dd68d 100644 --- a/modules/ROOT/pages/errors/gql-errors/22N69.adoc +++ b/modules/ROOT/pages/errors/gql-errors/22N69.adoc @@ -1,7 +1,27 @@ +:page-role: changed-2025.07 + = 22N69 == Status description -error: data exception - index does not exist. The index specified by `{ <> }` does not exist. +error: data exception - index does not exist. The index `{ <> }` does not exist. + + +== Example scenario + +For example, try to drop a non-existing index: + +[source,cypher] +---- +DROP INDEX `nonExisting` +---- + +You will receive an error with GQLSTATUS xref:errors/gql-errors/50N10.adoc[50N10]. +This error has a cause with GQLSTATUS 22N69 and status description: + +[source] +---- +error: data exception - index does not exist. The index 'nonExisting' does not exist. +---- ifndef::backend-pdf[] diff --git a/modules/ROOT/pages/errors/gql-errors/22N71.adoc b/modules/ROOT/pages/errors/gql-errors/22N71.adoc index c13a5635..c6501340 100644 --- a/modules/ROOT/pages/errors/gql-errors/22N71.adoc +++ b/modules/ROOT/pages/errors/gql-errors/22N71.adoc @@ -1,7 +1,33 @@ +:page-role: changed-2025.07 + = 22N71 == Status description -error: data exception - index with the same name already exists. An index with the same name already exists: `{ <> }`. +error: data exception - duplicated index name. An index with the same name already exists: `{ <> }`. + + +== Example scenario + +For example, try to create an index when there is another existing index with that name: + +Given: +[source,cypher] +---- +CREATE INDEX `myIndex` FOR (n:Person) ON (n.name) +---- + +Then, when attempting to create: +[source,cypher] +---- +CREATE INDEX `myIndex` FOR (n:Book) ON (n.title) +---- + +You will receive an error with GQLSTATUS 22N71 and status description: + +[source] +---- +error: data exception - duplicated index name. An index with the same name already exists: `myIndex` +---- ifndef::backend-pdf[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index ba6ad42d..ba607ae7 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -414,17 +414,19 @@ Status description:: error: data exception - duplicated constraint name. A const Status description:: error: data exception - dependent constraint managed individually. Dependent constraints cannot be managed individually and must be managed together with its graph type. +[role=label--changed-2025.07] === xref:errors/gql-errors/22N69.adoc[22N69] -Status description:: error: data exception - index does not exist. The index specified by `{ <> }` does not exist. +Status description:: error: data exception - index does not exist. The index `{ <> }` does not exist. === xref:errors/gql-errors/22N70.adoc[22N70] Status description:: error: data exception - equivalent index already exists. An equivalent index already exists: `{ <> }`. +[role=label--changed-2025.07] === xref:errors/gql-errors/22N71.adoc[22N71] -Status description:: error: data exception - index with the same name already exists. An index with the same name already exists: `{ <> }`. +Status description:: error: data exception - duplicated index name. An index with the same name already exists: `{ <> }`. === xref:errors/gql-errors/22N73.adoc[22N73]