From e62f5fb8653482e6193c3fd151d0c1d153d06b04 Mon Sep 17 00:00:00 2001 From: Joel Bergstrand Date: Wed, 27 Aug 2025 14:48:01 +0200 Subject: [PATCH 1/4] Error codes: 42I65 and 42I66 --- .../ROOT/pages/errors/gql-errors/42I65.adoc | 30 +++++++++++++++++++ .../ROOT/pages/errors/gql-errors/42I66.adoc | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 modules/ROOT/pages/errors/gql-errors/42I65.adoc create mode 100644 modules/ROOT/pages/errors/gql-errors/42I66.adoc diff --git a/modules/ROOT/pages/errors/gql-errors/42I65.adoc b/modules/ROOT/pages/errors/gql-errors/42I65.adoc new file mode 100644 index 00000000..3485608d --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42I65.adoc @@ -0,0 +1,30 @@ += 42I65 + +== Status description +error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `{ <> }`. + +== Example scenario + +For example, when trying to format using a year character on a time-only type: + +[source,cypher] +---- +RETURN format(time(), "yyyy") AS formatted +---- + +You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001]. +This error has a cause detailed in xref:errors/gql-errors/42I65.adoc[42I65] and status description: + + +[source] +---- +error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `ZONED TIME`. +---- + + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/42I66.adoc b/modules/ROOT/pages/errors/gql-errors/42I66.adoc new file mode 100644 index 00000000..5e50ed22 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42I66.adoc @@ -0,0 +1,30 @@ += 42I66 + +== Status description +error: syntax error or access rule violation - pattern parsing failed. Pattern parsing failed. Make sure that an even number of escapes are used in the pattern. + +== Example scenario + +For example, when formatting a duration: + +[source,cypher] +---- +RETURN format(duration("P1Y"), "y 'year") +---- + +You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001]. +This error has a cause detailed in xref:errors/gql-errors/42I66.adoc[42I66] and status description: + + +[source] +---- +error: syntax error or access rule violation - pattern parsing failed. Pattern parsing failed. Make sure that an even number of escapes are used in the pattern. +---- + + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file From 598b3cf114b84567a74cb337d1834fccb6035eb9 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Tue, 9 Sep 2025 10:42:10 +0200 Subject: [PATCH 2/4] regenarate the index.adoc file --- modules/ROOT/pages/errors/gql-errors/index.adoc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 571cd8ce..37537125 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -629,9 +629,10 @@ Status description:: error: data exception - omitting mandatory field for proper Status description:: error: data exception - index belongs to constraint. Index belongs to constraint `{ <> }`. +[role=label--new-2025.07] === xref:errors/gql-errors/22NBD.adoc[22NBD] -Status description:: error: data exception - unsupported struct tag. Unsupported struct tag: 0x56. `{ <> }`. +Status description:: error: data exception - unsupported struct tag. Unsupported struct tag: `{ <> }`. [[invalid-transaction-state]] @@ -1056,6 +1057,14 @@ Status description:: error: syntax error or access rule violation - wrong subcla Status description:: error: syntax error or access rule violation - unsupported operation. `{ <> }` currently not supported after `+NEXT+` `{ <> }`. +=== xref:errors/gql-errors/42I65.adoc[42I65] + +Status description:: error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `{ <> }`. + +=== xref:errors/gql-errors/42I66.adoc[42I66] + +Status description:: error: syntax error or access rule violation - pattern parsing failed. Pattern parsing failed. Make sure that an even number of escapes are used in the pattern. + [role=label--changed-2025.03] === xref:errors/gql-errors/42N00.adoc[42N00] From c62cce1243e6be3977a2eeeb546e26a6146dedb3 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Tue, 9 Sep 2025 10:46:36 +0200 Subject: [PATCH 3/4] add labels with the version in which the error codes have been introduced --- modules/ROOT/pages/errors/gql-errors/42I65.adoc | 1 + modules/ROOT/pages/errors/gql-errors/42I66.adoc | 1 + modules/ROOT/pages/errors/gql-errors/index.adoc | 2 ++ 3 files changed, 4 insertions(+) diff --git a/modules/ROOT/pages/errors/gql-errors/42I65.adoc b/modules/ROOT/pages/errors/gql-errors/42I65.adoc index 3485608d..b1252bc0 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I65.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I65.adoc @@ -1,3 +1,4 @@ +:page-role: new-2025.09 = 42I65 == Status description diff --git a/modules/ROOT/pages/errors/gql-errors/42I66.adoc b/modules/ROOT/pages/errors/gql-errors/42I66.adoc index 5e50ed22..1b3c712b 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I66.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I66.adoc @@ -1,3 +1,4 @@ +:page-role: new-2025.09 = 42I66 == Status description diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 37537125..346619ed 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1057,10 +1057,12 @@ Status description:: error: syntax error or access rule violation - wrong subcla Status description:: error: syntax error or access rule violation - unsupported operation. `{ <> }` currently not supported after `+NEXT+` `{ <> }`. +[role=label--new-2025.09] === xref:errors/gql-errors/42I65.adoc[42I65] Status description:: error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `{ <> }`. +[role=label--new-2025.09] === xref:errors/gql-errors/42I66.adoc[42I66] Status description:: error: syntax error or access rule violation - pattern parsing failed. Pattern parsing failed. Make sure that an even number of escapes are used in the pattern. From bf188835f85d769066b0ea982b50cdd250c3d545 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Tue, 9 Sep 2025 10:50:53 +0200 Subject: [PATCH 4/4] add the errors to the content-nav --- modules/ROOT/content-nav.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 6f06858b..b9870559 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -259,6 +259,8 @@ **** xref:errors/gql-errors/42I62.adoc[] **** xref:errors/gql-errors/42I63.adoc[] **** xref:errors/gql-errors/42I64.adoc[] +**** xref:errors/gql-errors/42I65.adoc[] +**** xref:errors/gql-errors/42I66.adoc[] **** xref:errors/gql-errors/42N00.adoc[] **** xref:errors/gql-errors/42N01.adoc[] **** xref:errors/gql-errors/42N02.adoc[]