Skip to content
Open
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
3 changes: 3 additions & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@
**** xref:errors/gql-errors/42N09.adoc[]
**** xref:errors/gql-errors/42N0A.adoc[]
**** xref:errors/gql-errors/42N0B.adoc[]
**** xref:errors/gql-errors/42N0D.adoc[]
**** xref:errors/gql-errors/42N0E.adoc[]
**** xref:errors/gql-errors/42N0F.adoc[]
**** xref:errors/gql-errors/42N10.adoc[]
**** xref:errors/gql-errors/42N11.adoc[]
**** xref:errors/gql-errors/42N12.adoc[]
Expand Down
23 changes: 23 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42N0D.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
:page-role: new-2025.10
= 42N0D


== Status description

error: syntax error or access rule violation - cannot call function from this context. The function `{ <<fun>> }` cannot be called from the current context. It can only be used `{ <<context>> }`.

== Explanation
This error is thrown when a function is called from a context that is not allowed for that function.

== Example scenario

Try to call an internal security function like `abac.oidc.user_attribute()` from a regular Cypher query.
You will get this error because it is not supported in user Cypher queries and can only be called from within `AUTH RULE` creation or alteration commands.


ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
20 changes: 20 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42N0E.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:page-role: new-2025.10
= 42N0E


== Status description

error: syntax error or access rule violation - cannot call function without metadata. The function `{ <<fun>> }` cannot be called without metadata.

== Explanation
This error occurs when the metadata required by the function is missing from the context supplied. This is an internal error which would only ever appear in the logs.

== Example scenario
A function is called without the required metadata.

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
20 changes: 20 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/42N0F.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:page-role: new-2025.10
= 42N0F


== Status description

error: syntax error or access rule violation - cannot call function without metadata for realm. The function `{ <<fun>> }` cannot be called without metadata for realm: `{ <<auth>> }`.

== Explanation
This error occurs when the metadata for a specific security realm is missing from the context supplied. This is an internal error which would only ever appear in the logs.

== Example scenario
A function is called with a metadata dictionary, but there is no entry for the required realm.

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
15 changes: 15 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,21 @@ Status description:: error: syntax error or access rule violation - invalid shar

Status description:: error: syntax error or access rule violation - cannot replace sharded database. The database identified by `{ <<db>>1 }` is sharded. Drop the database `{ <<db>>2 }` before recreating.

[role=label--new-2025.10]
=== xref:errors/gql-errors/42N0D.adoc[42N0D]

Status description:: error: syntax error or access rule violation - cannot call function from this context. The function `{ <<fun>> }` cannot be called from the current context. It can only be used `{ <<context>> }`.

[role=label--new-2025.10]
=== xref:errors/gql-errors/42N0E.adoc[42N0E]

Status description:: error: syntax error or access rule violation - cannot call function without metadata. The function `{ <<fun>> }` cannot be called without metadata.

[role=label--new-2025.10]
=== xref:errors/gql-errors/42N0F.adoc[42N0F]

Status description:: error: syntax error or access rule violation - cannot call function without metadata for realm. The function `{ <<fun>> }` cannot be called without metadata for realm: `{ <<auth>> }`.

=== xref:errors/gql-errors/42N10.adoc[42N10]

Status description:: error: syntax error or access rule violation - no such role. A role with the name `{ <<role>> }` was not found. Verify that the spelling is correct.
Expand Down