Skip to content

Import tool returns empty report if quotes in string fields in the CSV have not been escaped #191

@pulkit-s

Description

@pulkit-s

I was trying to import a csv which included geoJsons. I had not followed https://github.com/datacommonsorg/data/blob/master/docs/formatting_tips.md#emitting-dc-string-values, so I hadn't escaped the quotes. While I was running the tool, I kept getting a result with only API_EmptyDcCallResponse=1. Would expect errors in case the string is badly formatted.
perimeter_sample3.csv

tmcf:
Node: E:processed_data->E0
dcid: C:processed_data->fire_id
typeOf: C:processed_data->typeOf
fireGeoJsonCoordinatesDP1: C:processed_data->geojson_dp1

Report.json:
{
"levelSummary": {
"LEVEL_WARNING": {
"counters": {
"API_EmptyDcCallResponse": "1"
}
}
},
"commandArgs": {
"existenceChecks": true,
"resolution": "RESOLUTION_MODE_LOCAL",
"numThreads": 1,
"statChecks": true,
"observationAbout": false,
"allowNanSvobs": false
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions