From 75b7180c2a91c3ad179ddf66cef549d9e83d53a2 Mon Sep 17 00:00:00 2001 From: Love Leifland Date: Tue, 4 Nov 2025 15:09:05 +0100 Subject: [PATCH 1/5] Add 22G0I --- modules/ROOT/content-nav.adoc | 1 + modules/ROOT/pages/errors/gql-errors/22G0I.adoc | 11 +++++++++++ modules/ROOT/pages/errors/gql-errors/index.adoc | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 modules/ROOT/pages/errors/gql-errors/22G0I.adoc diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index e867095b..dc2854a3 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -38,6 +38,7 @@ **** xref:errors/gql-errors/22015.adoc[] **** xref:errors/gql-errors/22G03.adoc[] **** xref:errors/gql-errors/22G05.adoc[] +**** xref:errors/gql-errors/22G0I.adoc[] **** xref:errors/gql-errors/22N00.adoc[] **** xref:errors/gql-errors/22N01.adoc[] **** xref:errors/gql-errors/22N02.adoc[] diff --git a/modules/ROOT/pages/errors/gql-errors/22G0I.adoc b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc new file mode 100644 index 00000000..6b3690e9 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc @@ -0,0 +1,11 @@ += 22G0I + +== Status description +error: data exception - invalid duration field. `{ <> }` is not a valid duration field. + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 0b067a19..3c0069e6 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -147,6 +147,11 @@ Status description:: error: data exception - division by zero Status description:: error: data exception - interval field overflow + +=== xref:errors/gql-errors/22G01.adoc[22G01] + +Status description:: error: data exception - invalid duration field. `{ <> }` is not a valid duration field. + === xref:errors/gql-errors/22G03.adoc[22G03] Status description:: error: data exception - invalid value type From 59d99ca55f9248532fa5dbba54a8b842a379b95a Mon Sep 17 00:00:00 2001 From: Love Leifland Date: Tue, 4 Nov 2025 15:16:45 +0100 Subject: [PATCH 2/5] Fix --- modules/ROOT/pages/errors/gql-errors/index.adoc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 3c0069e6..96e8981e 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -147,11 +147,6 @@ Status description:: error: data exception - division by zero Status description:: error: data exception - interval field overflow - -=== xref:errors/gql-errors/22G01.adoc[22G01] - -Status description:: error: data exception - invalid duration field. `{ <> }` is not a valid duration field. - === xref:errors/gql-errors/22G03.adoc[22G03] Status description:: error: data exception - invalid value type @@ -160,6 +155,10 @@ Status description:: error: data exception - invalid value type Status description:: error: data exception - invalid date, time, or datetime function field name +=== xref:errors/gql-errors/22G0I.adoc[22G01] + +Status description:: error: data exception - invalid duration field. `{ <> }` is not a valid duration field. + === xref:errors/gql-errors/22N00.adoc[22N00] Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed. From d67e5a70edbce291f6c5250af981dcb574005b33 Mon Sep 17 00:00:00 2001 From: Love Kristofer Leifland Date: Fri, 7 Nov 2025 09:03:48 +0100 Subject: [PATCH 3/5] Update modules/ROOT/pages/errors/gql-errors/22G0I.adoc Co-authored-by: Reneta Popova --- modules/ROOT/pages/errors/gql-errors/22G0I.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ROOT/pages/errors/gql-errors/22G0I.adoc b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc index 6b3690e9..85c099d7 100644 --- a/modules/ROOT/pages/errors/gql-errors/22G0I.adoc +++ b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc @@ -1,3 +1,4 @@ +:page-role: new-2025.11 = 22G0I == Status description From 084a7d67ac39e8f68d4bc1d05eedd1826536d360 Mon Sep 17 00:00:00 2001 From: Love Leifland Date: Fri, 7 Nov 2025 09:23:05 +0100 Subject: [PATCH 4/5] Add example --- modules/ROOT/pages/errors/gql-errors/22G0I.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/ROOT/pages/errors/gql-errors/22G0I.adoc b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc index 85c099d7..d32d8063 100644 --- a/modules/ROOT/pages/errors/gql-errors/22G0I.adoc +++ b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc @@ -4,6 +4,22 @@ == Status description error: data exception - invalid duration field. `{ <> }` is not a valid duration field. +== Example scenario + +For example, when executing the following invalid query: + +[source,cypher] +---- +RETURN duration({dogYears: datetime()}) +---- + +You will receive an error with GQLSTATUS 22G0I and status description: + +[source] +---- +error: data exception - invalid duration field. `dogYears` is not a valid duration field. +---- + ifndef::backend-pdf[] [discrete.glossary] == Glossary From 493dc2e3500752474da5a19dcb6394b3a5c56d81 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Mon, 10 Nov 2025 10:24:13 +0100 Subject: [PATCH 5/5] regenerate the index file --- modules/ROOT/pages/errors/gql-errors/index.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 96e8981e..a3344016 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -155,7 +155,8 @@ Status description:: error: data exception - invalid value type Status description:: error: data exception - invalid date, time, or datetime function field name -=== xref:errors/gql-errors/22G0I.adoc[22G01] +[role=label--new-2025.11] +=== xref:errors/gql-errors/22G0I.adoc[22G0I] Status description:: error: data exception - invalid duration field. `{ <> }` is not a valid duration field.