Skip to content
Merged
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
24 changes: 23 additions & 1 deletion modules/ROOT/pages/errors/gql-errors/42N35.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
= 42N35

== Status description
error: syntax error or access rule violation - unsupported path selector in path pattern. The path selector `{ <<selector>> }` is not supported within quantified or parenthesized path patterns.
error: syntax error or access rule violation - unsupported path selector or explicit path mode in path pattern. The path selector or explicit path mode `{ <<selectorOrPathMode>> }` is not supported within quantified or parenthesized path patterns.

[#_example_scenario]
== Example scenario

For example, when trying to use `SHORTEST` or an explicit path mode like `ACYCLIC` within a quantified path pattern:

[source,cypher]
----
MATCH ()(SHORTEST 5 PATHS (a)-[r]->(b))*() RETURN r;
MATCH ()(ACYCLIC (a)-[r]->(b))*() RETURN r;
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001] with a cause with GQLSTATUS 42N35.

== Possible solution
Move the `SHORTEST` clause or an explicit path mode outside of the quantified path pattern:

[source,cypher]
----
MATCH SHORTEST 5 PATHS ()((a)-[r]->(b))*() RETURN r;
MATCH ACYCLIC ()((a)-[r]->(b))*() RETURN r;
----

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
7 changes: 1 addition & 6 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ Please note that while GQLSTATUS codes remain stable (any changes to them will b
For this reason, parsing the status descriptions or incorporating them into scripts is not recommended.
====

The error codes are grouped by condition, and within each condition, they are ordered by their code.
Each error code links to a page with more details about the error, including the status description and an example of when it can occur.
In some scenarios, the server may return a chain of errors, where the most specific error is returned as the cause of a more general error.
Keep in mind that the order of the error chain may differ between different tools, drivers, and the documentation, but the most specific error will always be the cause of the more general error.

[[connection-exceptions]]
== Connection exceptions

Expand Down Expand Up @@ -1362,7 +1357,7 @@ Status description:: error: syntax error or access rule violation - path bound i

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

Status description:: error: syntax error or access rule violation - unsupported path selector in path pattern. The path selector `{ <<selector>> }` is not supported within quantified or parenthesized path patterns.
Status description:: error: syntax error or access rule violation - unsupported path selector or explicit path mode in path pattern. The path selector or explicit path mode `{ <<selectorOrPathMode>> }` is not supported within quantified or parenthesized path patterns.

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

Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/partials/glossary.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
[[schemaDescr]]$schemaDescr:: Schema descriptor, for example, `(:Label1 \{prop1})`.
[[schemaDescrType]]$schemaDescrType:: Freeform type of schema descriptor, for example, `label property existence constraint`.
[[selector]]$selector:: GPM path selector, for example, `ALL PATHS`, `SHORTEST 2`, etc.
[[selectorOrPathMode]]$selectorOrPathMode:: GPM path selector, for example, `ALL PATHS`, `SHORTEST 2`, etc, or GPM path mode, for example `ACYCLIC`, `TRAIL`, etc.
[[selectorType]]$selectorType:: Selector type.
//Ask Lasse about $selectorType (releated to CDC) and has nothing to do with $selector.
[[server]]$server:: Server name or ID, for example, `25a7efc7-d063-44b8-bdee-f23357f89f01`.
Expand Down
Loading