-
Notifications
You must be signed in to change notification settings - Fork 6
[Push] Cannot publish tabular data with values that have double quotes #66
Comments
This is now INVALID as if you try to reproduce, it wouldn't fail as before. |
user@pc:~$ data-linux push https://github.com/frictionlessdata/test-data/blob/master/files/csv/all-schema-types.csv
> Error! Invalid opening quote at line 8
user@pc:~$ node work/datahq/data-cli/bin/data.js push https://github.com/frictionlessdata/test-data/blob/master/files/csv/all-schema-types.csv
> Error! Invalid opening quote at line 8
user@pc:~$ node work/datahq/data-cli/bin/data.js -v
0.6.7
|
@anuveyatsu ^^^ |
@AcckiyGerman have you pulled latest "test-data"? |
Just realised that double quotes in values should be used with escape character (and escape character by default should be also double quotes) so, e.g.:
should become:
|
that all becomes complicated, I suggest you to make a list of rules like
|
coz otherwise It can become very compex - did you ever seen the json file encoded in the url string ? 😄 |
or probably you can use |
@AcckiyGerman I think it's a common situation when you have double quotes in values. By default, |
Agree. You can escape |
TESTED: FAILED
|
@anuveyatsu The push is OK, so we could close this issue, but first create an issue about PUBLISH FAIL |
@AcckiyGerman Just a tip: posting links to the Failed revisions do not really help as we can not see unless logged in. Could we switch posting screenshots instead in cases like this. |
@zelima sure. I don't know why I was sure that you can read related logs from the backend. But even if so, it will be easier to read logs in the message than lurking on the backend |
@AcckiyGerman Although you won't be able to push this exact file due to #98, this one will be fixed in I created Gist and removed
Or take a look at already published package https://datahub.io/zelima/schema/v/27 |
TESTED & FIXED
|
@Mikanebu commented on Thu Feb 01 2018
Steps to reproduce
Output
got error "Invalid opening quote" - this is because we need to have escape character setup
Expected behaviour
data cat https://raw.githubusercontent.com/frictionlessdata/test-data/master/files/csv/all-schema-types.csv
data push all-schema-types.csv
- generates correct descriptor, eg, it has "dialectproperty with
escapeChar: """`The text was updated successfully, but these errors were encountered: