CSV file:
"id","name"
"00134535345343542X","Walmart"
"001342323423423232","Amazon"
Metadata JSON file:
{
"fileFormat": {
"charsetName": "UTF-8",
"fieldsEnclosedBy": "\"",
"fieldsDelimitedBy": ",",
"numberOfLinesToIgnore": 1
},
"objects": [
{
"connector": "CIConnector",
"description": "",
"fullyQualifiedName": "CSVData",
"label": "CSV Data",
"name": "CSVData",
"fields": [
{
"description": "",
"fullyQualifiedName": "CSVData.Name",
"label": "Acc Name",
"name": "Name",
"isSystemField": false,
"isUniqueId": false,
"isMultiValue": false,
"type": "Text"
},
{
"description": "",
"fullyQualifiedName": "CSVData.Id",
"label": "Acc Id",
"name": "Id",
"isSystemField": true,
"isUniqueId": true,
"type": "Text"
}
]
}
]
}
When uploading the data using InsightsExternalData API, I am receiving the below error:
Error executing node digest: field-count, 2, and header's column-count, 1, do not match (02K34534523223231M_03C23423423243231A)
I created the CSV data and Metadata JSON following the documentation mentioned in this link
Clearly I have two fields in header and on every line, I have two fields.. Any help on this?
NOTE: I am receiving this error only when loading the data using Cast Iron and It loads fine if I load the above files in UI.