Skip to content

Commit 4ae249a

Browse files
committed
add 42 codes
1 parent a39e806 commit 4ae249a

File tree

1 file changed

+187
-1
lines changed

1 file changed

+187
-1
lines changed

modules/ROOT/pages/errors/gql-errors.adoc

Lines changed: 187 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@ Status description:: error: invalid transaction termination - inner transactions
304304

305305
Transaction rollback errors occur when there is a failure in a transaction or a constituent transaction rollback.
306306

307+
=== 40000
308+
309+
Status description:: error: transaction rollback
310+
311+
=== 40003
312+
313+
Status description:: error: transaction rollback - statement completion unknown
314+
307315
=== 40N01
308316

309317
Status description:: error: transaction rollback - rollback failed. Failed to rollback transaction. See debug log for details.
@@ -317,10 +325,124 @@ Status description:: error: transaction rollback - constituent rollback failed.
317325

318326
Syntax error or access rule violation errors occur when a Cypher query contains invalid syntax or when a client request violates the access rules, such as when a query tries to access a database without enough privileges, etc.
319327

328+
=== 42000
329+
330+
Status description:: error: syntax error or access rule violation
331+
332+
=== 42001
333+
334+
Status description:: error: syntax error or access rule violation - invalid syntax
335+
336+
=== 42002
337+
338+
Status description:: error: syntax error or access rule violation - invalid reference
339+
340+
=== 42004
341+
342+
Status description:: error: syntax error or access rule violation - use of visually confusable identifiers
343+
344+
=== 42006
345+
346+
Status description:: error: syntax error or access rule violation - number of edge labels below supported minimum
347+
348+
=== 42007
349+
350+
Status description:: error: syntax error or access rule violation - number of edge labels exceeds supported maximum
351+
352+
=== 42008
353+
354+
Status description:: error: syntax error or access rule violation - number of edge properties exceeds supported maximum
355+
356+
=== 42009
357+
358+
Status description:: error: syntax error or access rule violation - number of node labels below supported minimum
359+
360+
=== 42010
361+
362+
Status description:: error: syntax error or access rule violation - number of node labels exceeds supported maximum
363+
364+
=== 42011
365+
366+
Status description:: error: syntax error or access rule violation - number of node properties exceeds supported maximum
367+
368+
=== 42012
369+
370+
Status description:: error: syntax error or access rule violation - number of node type key labels below supported minimum
371+
372+
=== 42013
373+
374+
Status description:: error: syntax error or access rule violation - number of node type key labels exceeds supported maximum
375+
376+
=== 42014
377+
378+
Status description:: error: syntax error or access rule violation - number of edge type key labels below supported minimum
379+
380+
=== 42015
381+
382+
Status description:: error: syntax error or access rule violation - number of edge type key labels exceeds supported maximum
383+
384+
=== 42I00
385+
386+
Status description:: error: syntax error or access rule violation - invalid case expression. 'CASE' expressions must have the same number of 'WHEN' and 'THEN' operands.
387+
388+
=== 42I01
389+
390+
Status description:: error: syntax error or access rule violation - invalid FOREACH. Invalid use of `{ $clause }` inside 'FOREACH'.
391+
392+
=== 42I02
393+
394+
Status description:: error: syntax error or access rule violation - invalid comment. Failed to parse comment. A comment starting with `'/*'` must also have a closing `'*/'`.
395+
396+
=== 42I06
397+
398+
Status description:: error: syntax error or access rule violation - invalid input. Invalid input `{ $input1 }`, expected: `{ $input2 }`.
399+
400+
=== 42I18
401+
402+
Status description:: error: syntax error or access rule violation - invalid reference to implicitly grouped expressions. The aggregation column contains implicit grouping expressions referenced by the variables `{ $varList }`. Implicit grouping expressions are variables not explicitly declared as grouping keys.
403+
404+
405+
=== 42I20
406+
407+
Status description:: error: syntax error or access rule violation - invalid symbol in expression. Label expressions and relationship type expressions cannot contain `{ $input }`. To express a label disjunction use `{ $labelExpr }` instead.
408+
409+
=== 42I25
410+
411+
Status description:: error: syntax error or access rule violation - invalid use of CALL IN TRANSACTIONS. 'CALL { ... } IN TRANSACTIONS' is not supported after a write clause.
412+
413+
=== 42I29
414+
415+
Status description:: error: syntax error or access rule violation - invalid use of IS. The IS keyword cannot be used together with multiple labels in `{ $input }`. Rewrite the expression as `{ $replacement }`.
416+
417+
=== 42I31
418+
419+
Status description:: error: syntax error or access rule violation - invalid use of MATCH. MATCH ...' cannot directly follow an 'OPTIONAL MATCH ...'. Use a WITH clause between them.
420+
421+
422+
=== 42I37
423+
424+
Status description:: error: syntax error or access rule violation - invalid use of `RETURN *`. `RETURN *'` is not allowed when there are no variables in scope.
425+
426+
=== 42I38
427+
428+
Status description:: error: syntax error or access rule violation - invalid use of `RETURN`. `RETURN ...'` can only be used at the end of a query or subquery.
429+
430+
=== 42I40
431+
432+
Status description:: error: syntax error or access rule violation - invalid use of `UNION and UNION ALL`. `UNION` and `UNION ALL` cannot be combined.
433+
434+
=== 42I47
435+
436+
Status description:: error: syntax error or access rule violation - parser error. Parser Error: `{ $msg }`.
437+
320438
=== 42I50
321439

322440
Status description:: error: syntax error or access rule violation - token name too long. Invalid input { $input }... A { $tokenType } name cannot be longer than { $maxTokenLength }.
323441

442+
=== 42N00
443+
444+
Status description:: error: syntax error or access rule violation - no such database. The database `{ $db }` was not found. Verify that the spelling is correct.
445+
324446
=== 42N01
325447

326448
Status description:: error: syntax error or access rule violation - no such constituent graph exists in composite database. The constituent graph { $graph } was not found in the in composite database { $db }. Verify that the spelling is correct.
@@ -389,14 +511,61 @@ Status description:: error: syntax error or access rule violation - unsupported
389511

390512
Status description:: error: syntax error or access rule violation - unsupported request. { $input } is not allowed on the system database.
391513

514+
=== 42N19
515+
516+
Status description:: error: syntax error or access rule violation - duplicate clause. Duplicate `{ $syntax }` clause.
517+
518+
=== 42N20
519+
520+
Status description:: error: syntax error or access rule violation - empty list range operator. The list range operator `'[ ]'` cannot be empty.
521+
522+
523+
=== 42N21
524+
525+
Status description:: error: syntax error or access rule violation - unaliased return item. Expression in `{ $clause }` must be aliased (use AS).
526+
527+
528+
=== 42N22
529+
530+
Status description:: error: syntax error or access rule violation - single return column required. A COLLECT subquery must end with a single return column.
531+
532+
=== 42N29
533+
534+
Status description:: error: syntax error or access rule violation - unbound variables in pattern expression. Pattern expressions are not allowed to introduce new variables: `{ $var }`.
535+
536+
=== 42N39
537+
538+
Status description:: error: syntax error or access rule violation - incompatible return columns. All subqueries in a UNION clause must have the same return column names.
539+
540+
=== 42N45
541+
542+
Status description:: error: syntax error or access rule violation - unexpected end of input. Unexpected end of input, expected 'CYPHER', 'EXPLAIN', 'PROFILE' or a query.
543+
392544
=== 42N49
393545

394546
Status description:: error: syntax error or access rule violation - unsupported normal form. Unknown Normal Form: { $input }.
395547

548+
=== 42N57
549+
550+
Status description:: error: syntax error or access rule violation - invalid use of data-modifications in expressions. `{ $expr }` cannot contain any updating clauses.
551+
552+
=== 42N70
553+
554+
Status description:: error: syntax error or access rule violation - function without required WHERE clause. The function `{ $fun }` requires a WHERE clause.
555+
396556
=== 42N75
397557

398558
Status description:: error: syntax error or access rule violation - invalid use of graph function. A call to the graph function { $fun } is only allowed as the top-level argument of a USE clause.
399559

560+
=== 42N76
561+
562+
Status description:: error: syntax error or access rule violation - unfulfillable hints. The hint(s) `{ $hintAndedList }` cannot be fulfilled.
563+
564+
=== 42N78
565+
566+
Status description:: error: syntax error or access rule violation - variable already bound. Node `{ $var }` has already been bound and cannot be modified by the `{ $clause }` clause.
567+
568+
400569
=== 42N83
401570

402571
Status description:: error: syntax error or access rule violation - impersonation disallowed while password change required. Cannot impersonate a user while password change required.
@@ -409,6 +578,10 @@ Status description:: error: syntax error or access rule violation - TERMINATE TR
409578

410579
Status description:: error: syntax error or access rule violation - cannot specify both allowed and denied databases. Allowed and denied database options are mutually exclusive.
411580

581+
=== 42N86
582+
583+
Status description:: error: syntax error or access rule violation - wildcard in parameter. `{ $syntax }` failed. Parameterized database and graph names do not support wildcards.
584+
412585
=== 42N88
413586

414587
Status description:: error: syntax error or access rule violation - cannot grant privilege. Permission cannot be granted for 'REMOVE IMMUTABLE PRIVILEGE'.
@@ -421,6 +594,19 @@ Status description:: error: syntax error or access rule violation - invalid driv
421594

422595
Status description:: error: syntax error or access rule violation - cannot alter immutable composite database. Composite databases cannot be altered (database: { $db }).
423596

597+
=== 42N97
598+
599+
Status description:: error: syntax error or access rule violation - missing mandatory auth clause. Clause `{ $clause }` is mandatory for auth provider `{ $auth }`.
600+
601+
602+
=== 42N98
603+
604+
Status description:: error: syntax error or access rule violation - cannot modify own user. Cannot modify the user record of the current user.
605+
606+
=== 42N99
607+
608+
Status description:: error: syntax error or access rule violation - cannot delete own user. Cannot delete the user record of the current user.
609+
424610
=== 42NFD
425611

426612
Status description:: error: syntax error or access rule violation - credentials expired. Permission denied. The credentials you provided were valid, but must be changed before you can use this instance.
@@ -471,4 +657,4 @@ Status description:: error: general processing exception - unexpected error. Une
471657
====
472658
50N42 is the default GQLSTATUS code for exceptions without a GQL object.
473659
For more information, see link:https://neo4j.com/docs/operations-manual/current/monitoring/logging/#_use_json_format_for_the_query_log[Operations Manual -> Use JSON format for the query log].
474-
====
660+
====

0 commit comments

Comments
 (0)