in Scheduler/Forms/UploadJobV3.cs [429:491]
private bool ValidateJobSettings()
{
if (upJobCronTriggerRadioButton.Checked)
{
var date = FormsHelper.GetScheduleForCron(upJobCronExpressionTextBox.Text, DateTimeOffset.Now);
if (date == DateTimeOffset.MinValue)
return false;
}
if (useMonitoringJobCheckBox.Checked && procJobCronTriggerRadioButton.Checked)
{
var date = FormsHelper.GetScheduleForCron(procJobCronExpressionTextBox.Text, DateTimeOffset.Now);
if (date == DateTimeOffset.MinValue)
return false;
}
var message = new StringBuilder();
if (string.IsNullOrEmpty(jobName.Text))
message.AppendLine(Resources.Job_name_is_missing);
if ((jobGroupComboBox.SelectedItem == null) || string.IsNullOrEmpty(jobGroupComboBox.Text))
message.AppendLine(Resources.Job_group_is_not_selected);
if (string.IsNullOrEmpty(topUploadFolderTextBox.Text) && useStandardSubfolder.Checked)
message.AppendLine(Resources.Top_uploads_folder_is_not_selected);
if (string.IsNullOrEmpty(inputFolderTextBox.Text))
message.AppendLine(Resources.Input_folder_is_not_selected);
if (string.IsNullOrEmpty(uploadSuccessFolderTextBox.Text))
message.AppendLine(Resources.Upload_success_folder_is_not_selected);
if (string.IsNullOrEmpty(uploadErrorsFolderTextBox.Text))
message.AppendLine(Resources.Upload_errors_folder_is_not_selected);
if (string.IsNullOrEmpty(processingSuccessFolderTextBox.Text) && useMonitoringJobCheckBox.Checked)
message.AppendLine(Resources.Processing_success_folder_is_not_selected);
if (string.IsNullOrEmpty(processingErrorsFolderTextBox.Text) && useMonitoringJobCheckBox.Checked)
message.AppendLine(Resources.Processing_errors_folder_is_not_selected);
if ((instanceComboBox.SelectedItem == null) || string.IsNullOrEmpty(instanceComboBox.Text))
message.AppendLine(Resources.Dynamics_instance_is_not_selected);
if (userAuthRadioButton.Checked &&
((userComboBox.SelectedItem == null) || string.IsNullOrEmpty(userComboBox.Text)))
message.AppendLine(Resources.User_is_not_selected);
if ((appRegistrationComboBox.SelectedItem == null) || string.IsNullOrEmpty(appRegistrationComboBox.Text))
message.AppendLine(Resources.AAD_client_application_is_not_selected);
if ((dataJobComboBox.SelectedItem == null) || string.IsNullOrEmpty(dataJobComboBox.Text))
message.AppendLine(Resources.Data_job_is_not_selected);
if (string.IsNullOrEmpty(statusFileExtensionTextBox.Text) && useMonitoringJobCheckBox.Checked)
message.AppendLine(Resources.Status_file_extension_is_not_specified);
if (message.Length > 0)
MessageBox.Show(message.ToString(), Resources.Job_configuration_is_not_valid);
return message.Length == 0;
}