Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
**** xref:errors/gql-errors/42I65.adoc[]
**** xref:errors/gql-errors/42I66.adoc[]
**** xref:errors/gql-errors/42I67.adoc[]
**** xref:errors/gql-errors/42I68.adoc[]
**** xref:errors/gql-errors/42N00.adoc[]
**** xref:errors/gql-errors/42N01.adoc[]
**** xref:errors/gql-errors/42N02.adoc[]
Expand Down
30 changes: 30 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42I68.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
:page-role: new-2025.09
= 42I68

== Status description
error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <<input>>1 }`, does not match input, `{ <<input>>2 }`. Verify that the pattern is valid for constructing `{ <<valueType>> }`.

== Example scenario

For example, when parsing a duration string value:

[source,cypher]
----
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
----

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/42I68.adoc[42I68] and status description:


[source]
----
error: syntax error or access rule violation - mismatched pattern. Pattern, `"h 'hours' m 'minutes'"`, does not match input, `"5 hours 12 minutes 15 seconds"`. Verify that the pattern is valid for constructing `DURATION`.
----

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
28 changes: 28 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/53N33.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= 53N33

== Status description
error: function exception - function invocation failed. Failed to invoke function `{ <<sig>> }` caused by: `{ <<msg>> }`.

== Example scenario

For example, when parsing a duration string value:

[source,cypher]
----
RETURN duration({hours: 1}, "hh-mm-ss") as r
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/53N33.adoc[53N33] and status description:


[source]
----
error: function exception - function invocation failed. Failed to invoke function duration(input :: ANY, pattern = DEFAULT_TEMPORAL_ARGUMENT :: STRING) :: DURATION caused by: A pattern can only be used in conjunction with a `STRING` input..
----

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
5 changes: 5 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,11 @@ Status description:: error: syntax error or access rule violation - pattern pars

Status description:: error: syntax error or access rule violation - unsupported language feature. The query is a valid `CYPHER { <<feat>>2 }` query, but it is run in `CYPHER { <<feat>>1 }`. Consider changing the database default Cypher version using `ALTER DATABASE SET DEFAULT LANGUAGE` or prefix the query with `CYPHER { <<feat>>2 }`.

[role=label--new-2025.09]
=== xref:errors/gql-errors/42I68.adoc[42I68]

Status description:: error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <<input>>1 }`, does not match input, `{ <<input>>2 }`. Verify that the pattern is valid for constructing `{ <<valueType>> }`.

[role=label--changed-2025.03]
=== xref:errors/gql-errors/42N00.adoc[42N00]

Expand Down