You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`.
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/index.adoc
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1092,6 +1092,11 @@ Status description:: error: syntax error or access rule violation - pattern pars
1092
1092
1093
1093
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 }`.
1094
1094
1095
+
[role=label--new-2025.10]
1096
+
=== xref:errors/gql-errors/42I68.adoc[42I68]
1097
+
1098
+
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>> }`.
Status description:: error: function exception - function invocation failed. Failed to invoke function `{ <<sig>> }` caused by: `{ <<msg>> }`
2096
+
2087
2097
=== xref:errors/gql-errors/53N34.adoc[53N34]
2088
2098
2089
2099
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.
a|Use setting 'dbms.security.allow_oidc_credential_forwarding_enabled' to enable OIDC credential forwarding.
3664
+
|Category
3665
+
m|SECURITY
3666
+
|GQLSTATUS code
3667
+
m|01N74
3668
+
|Status description
3669
+
|warn: OIDC credential forwarding disabled.
3670
+
Use the setting `dbms.security.allow_oidc_credential_forwarding_enabled` to enable OIDC credential forwarding.
3671
+
|Classification
3672
+
m|SECURITY
3673
+
|SeverityLevel
3674
+
m|WARNING
3675
+
|===
3676
+
3677
+
.Create a remote database alias with remote credentials set to OIDC credential forwarding when OIDC credential forwarding is not enabled.
3678
+
[.tabbed-example]
3679
+
=====
3680
+
[.include-with-GQLSTATUS-code]
3681
+
======
3682
+
Command::
3683
+
+
3684
+
[source, cypher]
3685
+
----
3686
+
CREATE ALIAS `remote-neo4j` FOR DATABASE `neo4j` AT "neo4j+s://location:7687" OIDC CREDENTIAL FORWARDING
3687
+
----
3688
+
3689
+
Returned GQLSTATUS code::
3690
+
01N74
3691
+
3692
+
Returned status description::
3693
+
warn: OIDC credential forwarding disabled.
3694
+
Use the setting 'dbms.security.allow_oidc_credential_forwarding_enabled' to enable OIDC credential forwarding.
3695
+
3696
+
Suggestions for improvement::
3697
+
The remote database alias has been successfully created, but OIDC credential forwarding is not enabled. To use the alias to connect to the remote Neo4j DBMS, allow OIDC credential forwarding by setting `dbms.security.allow_oidc_credential_forwarding_enabled` to `true`.
3698
+
3699
+
======
3700
+
[.include-with-neo4j-code]
3701
+
======
3702
+
Command::
3703
+
+
3704
+
[source, cypher]
3705
+
----
3706
+
CREATE ALIAS `remote-neo4j` FOR DATABASE `neo4j` AT "neo4j+s://location:7687" OIDC CREDENTIAL FORWARDING
3707
+
----
3708
+
3709
+
Suggestions for improvement::
3710
+
The remote database alias has been successfully created, but OIDC credential forwarding is not enabled. To use the alias to connect to the remote Neo4j DBMS, allow OIDC credential forwarding by setting `dbms.security.allow_oidc_credential_forwarding_enabled` to `true`.
0 commit comments