if (!PublishMethod.replace.name().equalsIgnoreCase(action) && job.getPublishViaFTP()) {
JobStatus status = JobStatus.PUBLISH_ERROR;
status.setMessage("FTP does not currently support upsert, append or delete");
return status;
}
PublishMethod publishMethod = job.getPublishMethod();
if (publishMethod != null && !action.equalsIgnoreCase(publishMethod.name())) {
JobStatus status = JobStatus.PUBLISH_ERROR;
status.setMessage("Conflicting Publish Methods: " +
"The publish method selected was '" + publishMethod.name() +
"', but the 'action' option in the control file specifies the publish method as '" + action + ".");
return status;
}
String rowIdentifier = DatasetUtils.getRowIdentifierName(schema);
if (rowIdentifier == null && PublishMethod.delete.name().equalsIgnoreCase(action)) {