Skip to content

Commit aff6a7f

Browse files
Add 22G0I
Co-authored-by: Reneta Popova <[email protected]>
1 parent 31f97e9 commit aff6a7f

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
**** xref:errors/gql-errors/22015.adoc[]
3939
**** xref:errors/gql-errors/22G03.adoc[]
4040
**** xref:errors/gql-errors/22G05.adoc[]
41+
**** xref:errors/gql-errors/22G0I.adoc[]
4142
**** xref:errors/gql-errors/22N00.adoc[]
4243
**** xref:errors/gql-errors/22N01.adoc[]
4344
**** xref:errors/gql-errors/22N02.adoc[]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
:page-role: new-2025.11
2+
= 22G0I
3+
4+
== Status description
5+
error: data exception - invalid duration field. `{ <<field>> }` is not a valid duration field.
6+
7+
== Example scenario
8+
9+
For example, when executing the following invalid query:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration({dogYears: datetime()})
14+
----
15+
16+
You will receive an error with GQLSTATUS 22G0I and status description:
17+
18+
[source]
19+
----
20+
error: data exception - invalid duration field. `dogYears` is not a valid duration field.
21+
----
22+
23+
ifndef::backend-pdf[]
24+
[discrete.glossary]
25+
== Glossary
26+
27+
include::partial$glossary.adoc[]
28+
endif::[]

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ Status description:: error: data exception - invalid value type
155155

156156
Status description:: error: data exception - invalid date, time, or datetime function field name
157157

158+
[role=label--new-2025.11]
159+
=== xref:errors/gql-errors/22G0I.adoc[22G0I]
160+
161+
Status description:: error: data exception - invalid duration field. `{ <<field>> }` is not a valid duration field.
162+
158163
=== xref:errors/gql-errors/22N00.adoc[22N00]
159164

160165
Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed.

0 commit comments

Comments
 (0)