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: data exception - characters after quote in CSV field. At `{ <<input1>> }` @ position `{ <<pos>> }` - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what was read: `{ <<input2>> }`.
5
+
6
+
== Explanation
7
+
When a CSV file has a field that starts with a quote has content after the ending quote that file is formatted incorrectly and trying to read such a file with `LOAD CSV` will result in an error.
8
+
9
+
== Example scenario
10
+
11
+
Given that `somefile.csv` is a CSV file with the following content:
12
+
`
13
+
x,y
14
+
"x",1
15
+
"y"y,2
16
+
`
17
+
Then running the query;
18
+
----
19
+
LOAD CSV 'somefile.csv' AS line RETURN count(line)
20
+
----
21
+
22
+
The following error will be thrown:
23
+
[source]
24
+
----
25
+
error: data exception - characters after quote in CSV field. At 'somefile.csv' @ position 14 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: 'y"y'
error: data exception - missing end quote in CSV field. At '{ <<input1>> }' @ position `{ <<dim1>> }` - Missing end for quote (\``{ <<input2>> }`\`) which started on line `{ <<dim2>> }`.
5
+
6
+
== Explanation
7
+
When a CSV file has a field that starts with a quote but misses an ending quote that file is formatted incorrectly and trying to read such a file with `LOAD CSV` will result in an error.
8
+
9
+
== Example scenario
10
+
11
+
Given that 'somefile.csv' is a CSV file with the following content:
12
+
`
13
+
x,y
14
+
"x",1
15
+
"y,2
16
+
`
17
+
Then running the query;
18
+
----
19
+
LOAD CSV 'somefile.csv' AS line RETURN count(line)
20
+
----
21
+
22
+
The following error will be thrown:
23
+
[source]
24
+
----
25
+
error: data exception - missing end quote in CSV field. At 'somefile.csv' @ position 15 - Missing end for quote (\`"\`) which started on line 3.
error: data exception - multi-line field in illegal CSV context. At `{ <<input>> }` @ position `{ <<pos>> }` - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
5
+
6
+
== Explanation
7
+
When a CSV file has a field that starts with a quote has content after the ending quote that file is formatted incorrectly and trying to read such a file with `LOAD CSV` will result in an error.
8
+
9
+
== Example scenario
10
+
11
+
Given that `somefile.csv` is a CSV file with the following content:
12
+
----
13
+
x,y
14
+
"x",1
15
+
"y
16
+
",2
17
+
----
18
+
And that the neo4j database logging is configured with specific allowed multiline files, but where `somefile.csv` is not among them.
19
+
Then running the query;
20
+
----
21
+
LOAD CSV 'somefile.csv' AS line RETURN count(line)
22
+
----
23
+
24
+
The following error will be thrown:
25
+
[source]
26
+
----
27
+
error: data exception - multi-line field in illegal CSV context. At 'somefile.csv' @ position 15 - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/index.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,6 +584,18 @@ Status description:: error: data exception - invalid list for property-based acc
584
584
585
585
Status description:: error: data exception - mixed type list for property-based access control rule. The expression `{ <<expr>> }` is not supported. All elements in a list must be literals of the same type for property-based access control.
586
586
587
+
=== xref:errors/gql-errors/22NAC.adoc[22NAC]
588
+
589
+
Status description:: error: data exception - characters after quote in CSV field. At `{ <<input1>> }` @ position `{ <<pos>> }` - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what was read: `{ <<input2>> }`.
590
+
591
+
=== xref:errors/gql-errors/22NAD.adoc[22NAD]
592
+
593
+
Status description:: error: data exception - missing end quote in CSV field. At `{ <<input1>> }` @ position `{ <<dim1>> }` - Missing end for quote (\``{ <<input2>> }`\`) which started on line `{ <<dim2>> }`.
594
+
595
+
=== xref:errors/gql-errors/22NAE.adoc[22NAE]
596
+
597
+
Status description:: error: data exception - multi-line field in illegal CSV context. At `{ <<input>> }` @ position `{ <<pos>> }` - Multi-line fields are illegal in this context and so this might suggest that there's a field with a start quote, but a missing end quote.
598
+
587
599
=== xref:errors/gql-errors/22NB0.adoc[22NB0]
588
600
589
601
Status description:: error: data exception - invalid property-based access control rule involving `WHERE` and `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `WHERE` syntax in combination with `IS NULL` instead.
0 commit comments