if (!operation.equals(OperationInfo.insert)) {
taskId = createTask(nullFieldName, isDateField);
}
generateCsvWithNAField(nullFieldName, taskId);
Map<String, String> argMap = getArgMap(operation);
Controller controller;
if (!getController().getConfig().getBoolean(Config.BULK_API_ENABLED) && isDateField) {
controller = runProcess(argMap, true, null, 0, 0, 1, false);
String errorFile = controller.getConfig().getStringRequired(Config.OUTPUT_ERROR);
String errorMessage = getCsvFieldValue(errorFile, "ERROR");
assertEquals("unexpected error message",
"Error converting value to correct data type: Failed to parse date: #N/A", errorMessage);
} else {
int numInsert = operation.equals(OperationInfo.insert) ? 1 : 0;