Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 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 Expand Up @@ -509,6 +510,7 @@
**** xref:errors/gql-errors/52N41.adoc[]
**** xref:errors/gql-errors/52U00.adoc[]
*** xref:errors/gql-errors/index.adoc#function-exceptions[Function exceptions]
**** xref:errors/gql-errors/53N33.adoc[]
**** xref:errors/gql-errors/53N34.adoc[]
**** xref:errors/gql-errors/53N35.adoc[]
**** xref:errors/gql-errors/53N37.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.10
= 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::[]
29 changes: 29 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/53N33.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
:page-role: new-2025.10
= 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::[]
10 changes: 10 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.10]
=== 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 Expand Up @@ -2079,6 +2084,11 @@ Status description:: error: procedure exception - custom procedure execution err
[[function-exceptions]]
== Function exceptions

[role=label--new-2025.10]
=== xref:errors/gql-errors/53N33.adoc[53N33]

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

=== xref:errors/gql-errors/53N34.adoc[53N34]

Status description:: error: function exception - function restricted. `{ <<fun>> }` is restricted and accesses database internals. User-defined function restriction is controlled by the `dbms.security.procedures.unrestricted` setting. Only un-restrict user-defined functions you can trust with access to database internals.
Expand Down