Skip to content

Commit ff5cbb2

Browse files
Adding 42I68, mismatched pattern, 53N33 function invocation failed (#384)
Adding 42I68 introduced in [PR](https://github.com/neo-technology/neo4j/pull/32807/files#) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent b1a5f0a commit ff5cbb2

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
**** xref:errors/gql-errors/42I65.adoc[]
266266
**** xref:errors/gql-errors/42I66.adoc[]
267267
**** xref:errors/gql-errors/42I67.adoc[]
268+
**** xref:errors/gql-errors/42I68.adoc[]
268269
**** xref:errors/gql-errors/42N00.adoc[]
269270
**** xref:errors/gql-errors/42N01.adoc[]
270271
**** xref:errors/gql-errors/42N02.adoc[]
@@ -509,6 +510,7 @@
509510
**** xref:errors/gql-errors/52N41.adoc[]
510511
**** xref:errors/gql-errors/52U00.adoc[]
511512
*** xref:errors/gql-errors/index.adoc#function-exceptions[Function exceptions]
513+
**** xref:errors/gql-errors/53N33.adoc[]
512514
**** xref:errors/gql-errors/53N34.adoc[]
513515
**** xref:errors/gql-errors/53N35.adoc[]
514516
**** xref:errors/gql-errors/53N37.adoc[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:page-role: new-2025.10
2+
= 42I68
3+
4+
== Status description
5+
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>> }`.
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration("5 hours 12 minutes 15 seconds", "h 'hours' m 'minutes'") AS d
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and status description:
18+
19+
20+
[source]
21+
----
22+
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`.
23+
----
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:page-role: new-2025.10
2+
= 53N33
3+
4+
== Status description
5+
error: function exception - function invocation failed. Failed to invoke function `{ <<sig>> }` caused by: `{ <<msg>> }`
6+
7+
== Example scenario
8+
9+
For example, when parsing a duration string value:
10+
11+
[source,cypher]
12+
----
13+
RETURN duration({hours: 1}, "hh-mm-ss") as r
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/53N33.adoc[53N33] and status description:
17+
18+
19+
[source]
20+
----
21+
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.
22+
----
23+
24+
ifndef::backend-pdf[]
25+
[discrete.glossary]
26+
== Glossary
27+
28+
include::partial$glossary.adoc[]
29+
endif::[]

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,11 @@ Status description:: error: syntax error or access rule violation - pattern pars
10871087

10881088
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 }`.
10891089

1090+
[role=label--new-2025.10]
1091+
=== xref:errors/gql-errors/42I68.adoc[42I68]
1092+
1093+
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>> }`.
1094+
10901095
[role=label--changed-2025.03]
10911096
=== xref:errors/gql-errors/42N00.adoc[42N00]
10921097

@@ -2079,6 +2084,11 @@ Status description:: error: procedure exception - custom procedure execution err
20792084
[[function-exceptions]]
20802085
== Function exceptions
20812086

2087+
[role=label--new-2025.10]
2088+
=== xref:errors/gql-errors/53N33.adoc[53N33]
2089+
2090+
Status description:: error: function exception - function invocation failed. Failed to invoke function `{ <<sig>> }` caused by: `{ <<msg>> }`
2091+
20822092
=== xref:errors/gql-errors/53N34.adoc[53N34]
20832093

20842094
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.

0 commit comments

Comments
 (0)