You need to sign in to do that
Don't have an account?
TheRotnelson
How can I define which delimiter the data loader should use when run by command line?
Does someone know how define which delimiter the data loader should use when it is executed by command line? I am using version 38. The GUI has an option for defining allowed CSVs delimitters, but I cannot find that there is a parameter for this using the datalaoder trough command line.
The source files I am loading are delimited by tab and has values containing commas. This makes the dataloader fails since it interprets both as column separation.
The source files I am loading are delimited by tab and has values containing commas. This makes the dataloader fails since it interprets both as column separation.
You can read the source code here:
https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java
https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/config/Config.java
Regards
Alain
https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/loader_params.htm
loader.csvOtherValue is not published yet or needs a patch.
I´ll try to run with loader.csvComma=false in config.properties
loader.csvComma=false
loader.csvTab=true
did not help.
Looks like these values are set with a value hard coded in the source code.
The problem should be here : custDelimiter is always false by this way.
public CSVFileReader(String filePath, Controller controller) {
this(new File(filePath), controller.getConfig(), false);
}
http:// https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java (http:// https://github.com/forcedotcom/dataloader/blob/master/src/main/java/com/salesforce/dataloader/dao/csv/CSVFileReader.java)