From 59a841aeb51e0ef32af0d43024808a32326e5d12 Mon Sep 17 00:00:00 2001 From: Joel Bergstrand Date: Tue, 9 Sep 2025 15:20:15 +0200 Subject: [PATCH 1/7] Adding 42I68, ambiguous pattern --- .../ROOT/pages/errors/gql-errors/42I68.adoc | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/ROOT/pages/errors/gql-errors/42I68.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..fc6b2600 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -0,0 +1,29 @@ += 42I68 + +== Status description +error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. + +== Example scenario + +For example, when parsing a duration string value: + +[source,cypher] +---- +RETURN duration("5 hours 12 minutes 15 minutes", "h 'hours' m 'minutes' m 'minutes'" +---- + +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 - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. +---- + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file From 55e3af196766d5b008be9df84acaf8b570158694 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 10 Sep 2025 16:32:46 +0100 Subject: [PATCH 2/7] regenerate the index.adoc file --- modules/ROOT/pages/errors/gql-errors/index.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 7ad1aac8..b7d9afba 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1087,6 +1087,10 @@ 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 }`. +=== xref:errors/gql-errors/42I68.adoc[42I68] + +Status description:: error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. + [role=label--changed-2025.03] === xref:errors/gql-errors/42N00.adoc[42N00] From 21e1afca61ba84a9152741ccdb0da1bf926dc587 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 10 Sep 2025 16:35:02 +0100 Subject: [PATCH 3/7] add the error to the content-nav and add a label --- modules/ROOT/content-nav.adoc | 1 + modules/ROOT/pages/errors/gql-errors/42I68.adoc | 1 + modules/ROOT/pages/errors/gql-errors/index.adoc | 1 + 3 files changed, 3 insertions(+) diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index edb01fb1..99dcf65e 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[] diff --git a/modules/ROOT/pages/errors/gql-errors/42I68.adoc b/modules/ROOT/pages/errors/gql-errors/42I68.adoc index fc6b2600..9d7bc51e 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I68.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -1,3 +1,4 @@ +:page-role: new-2025.09 = 42I68 == Status description diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index b7d9afba..7bfe81bb 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1087,6 +1087,7 @@ 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.09] === xref:errors/gql-errors/42I68.adoc[42I68] Status description:: error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. From 56378594483fe92562a01dd33ce85b48f274f1cf Mon Sep 17 00:00:00 2001 From: Joel Bergstrand Date: Fri, 12 Sep 2025 11:20:05 +0200 Subject: [PATCH 4/7] Updated 42I68 --- modules/ROOT/pages/errors/gql-errors/42I68.adoc | 6 +++--- modules/ROOT/pages/errors/gql-errors/index.adoc | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ROOT/pages/errors/gql-errors/42I68.adoc b/modules/ROOT/pages/errors/gql-errors/42I68.adoc index 9d7bc51e..ff6ca7fd 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I68.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -2,7 +2,7 @@ = 42I68 == Status description -error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. +error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <> }`, does not match input, `{ <> }`. Verify that the pattern is valid for constructing `{ <> }`. == Example scenario @@ -10,7 +10,7 @@ For example, when parsing a duration string value: [source,cypher] ---- -RETURN duration("5 hours 12 minutes 15 minutes", "h 'hours' m 'minutes' m 'minutes'" +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]. @@ -19,7 +19,7 @@ This error has a cause detailed in xref:errors/gql-errors/42I68.adoc[42I68] and [source] ---- -error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. +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[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 7bfe81bb..0b5f5382 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1090,7 +1090,8 @@ Status description:: error: syntax error or access rule violation - unsupported [role=label--new-2025.09] === xref:errors/gql-errors/42I68.adoc[42I68] -Status description:: error: syntax error or access rule violation - ambiguous pattern field. The pattern contains pattern elements that refer to the same pattern fields. Make sure that the pattern is non-ambiguous. + +Status description:: error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <> }`, does not match input, `{ <> }`. Verify that the pattern is valid for constructing `{ <> }`. [role=label--changed-2025.03] === xref:errors/gql-errors/42N00.adoc[42N00] From a8e437bc98e9ef6e5cabd2d3f384367ac5122a41 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Fri, 12 Sep 2025 12:30:55 +0100 Subject: [PATCH 5/7] Fix the variables and update the index file --- modules/ROOT/pages/errors/gql-errors/42I68.adoc | 2 +- modules/ROOT/pages/errors/gql-errors/index.adoc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/errors/gql-errors/42I68.adoc b/modules/ROOT/pages/errors/gql-errors/42I68.adoc index ff6ca7fd..87f9d8b0 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I68.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -2,7 +2,7 @@ = 42I68 == Status description -error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <> }`, does not match input, `{ <> }`. Verify that the pattern is valid for constructing `{ <> }`. +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 diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 0b5f5382..6e8f4ed5 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1090,8 +1090,7 @@ Status description:: error: syntax error or access rule violation - unsupported [role=label--new-2025.09] === xref:errors/gql-errors/42I68.adoc[42I68] - -Status description:: error: syntax error or access rule violation - mismatched pattern. Pattern, `{ <> }`, does not match input, `{ <> }`. Verify that the pattern is valid for constructing `{ <> }`. +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] From 51521746f78ac46c999369a2dc23b548e65afe72 Mon Sep 17 00:00:00 2001 From: Joel Bergstrand Date: Tue, 16 Sep 2025 16:44:28 +0200 Subject: [PATCH 6/7] Added 53N33 --- .../ROOT/pages/errors/gql-errors/53N33.adoc | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/ROOT/pages/errors/gql-errors/53N33.adoc 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..cdd2f343 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/53N33.adoc @@ -0,0 +1,28 @@ += 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::[] From f1b3cd4b5a2c5471c1da3054e1f647fb9f6e5e6a Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 8 Oct 2025 16:33:42 +0100 Subject: [PATCH 7/7] add versions, update the content-nav and regenerate the index file --- modules/ROOT/content-nav.adoc | 1 + modules/ROOT/pages/errors/gql-errors/42I68.adoc | 2 +- modules/ROOT/pages/errors/gql-errors/53N33.adoc | 5 +++-- modules/ROOT/pages/errors/gql-errors/index.adoc | 7 ++++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 99dcf65e..62efe6d8 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -510,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 index 87f9d8b0..d13df723 100644 --- a/modules/ROOT/pages/errors/gql-errors/42I68.adoc +++ b/modules/ROOT/pages/errors/gql-errors/42I68.adoc @@ -1,4 +1,4 @@ -:page-role: new-2025.09 +:page-role: new-2025.10 = 42I68 == Status description diff --git a/modules/ROOT/pages/errors/gql-errors/53N33.adoc b/modules/ROOT/pages/errors/gql-errors/53N33.adoc index cdd2f343..3be9d32e 100644 --- a/modules/ROOT/pages/errors/gql-errors/53N33.adoc +++ b/modules/ROOT/pages/errors/gql-errors/53N33.adoc @@ -1,7 +1,8 @@ +:page-role: new-2025.10 = 53N33 == Status description -error: function exception - function invocation failed. Failed to invoke function `{ <> }` caused by: `{ <> }`. +error: function exception - function invocation failed. Failed to invoke function `{ <> }` caused by: `{ <> }` == Example scenario @@ -17,7 +18,7 @@ You will receive an error with GQLSTATUS xref:errors/gql-errors/53N33.adoc[53N33 [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.. +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[] diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index 6e8f4ed5..d9ebd090 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1087,7 +1087,7 @@ 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.09] +[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 `{ <> }`. @@ -2084,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.