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..d32d8063 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/22G0I.adoc @@ -0,0 +1,28 @@ +:page-role: new-2025.11 += 22G0I + +== 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 + +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..a3344016 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -155,6 +155,11 @@ Status description:: error: data exception - invalid value type Status description:: error: data exception - invalid date, time, or datetime function field name +[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. + === xref:errors/gql-errors/22N00.adoc[22N00] Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed.