diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index edb01fb1..62efe6d8 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -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[] @@ -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[] diff --git a/modules/ROOT/pages/errors/gql-errors/42I68.adoc b/modules/ROOT/pages/errors/gql-errors/42I68.adoc new file mode 100644 index 00000000..d13df723 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -0,0 +1,30 @@ +:page-role: new-2025.10 += 42I68 + +== Status description +error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <>1 }`, does not match input, `{ <>2 }`. Verify that the pattern is valid for constructing `{ <> }`. + +== 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::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/53N33.adoc b/modules/ROOT/pages/errors/gql-errors/53N33.adoc new file mode 100644 index 00000000..3be9d32e --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/53N33.adoc @@ -0,0 +1,29 @@ +:page-role: new-2025.10 += 53N33 + +== Status description +error: function exception - function invocation failed. Failed to invoke function `{ <> }` caused by: `{ <> }` + +== 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::[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 7ad1aac8..d9ebd090 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -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 { <>2 }` query, but it is run in `CYPHER { <>1 }`. Consider changing the database default Cypher version using `ALTER DATABASE SET DEFAULT LANGUAGE` or prefix the query with `CYPHER { <>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, `{ <>1 }`, does not match input, `{ <>2 }`. Verify that the pattern is valid for constructing `{ <> }`. + [role=label--changed-2025.03] === xref:errors/gql-errors/42N00.adoc[42N00] @@ -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 `{ <> }` caused by: `{ <> }` + === xref:errors/gql-errors/53N34.adoc[53N34] Status description:: error: function exception - function restricted. `{ <> }` 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.