diff --git a/internal/workflow/processing.go b/internal/workflow/processing.go index dd105c3b1..495e2de00 100644 --- a/internal/workflow/processing.go +++ b/internal/workflow/processing.go @@ -1241,9 +1241,9 @@ func (w *ProcessingWorkflow) validatePREMIS( XSDPath: w.cfg.ValidatePREMIS.XSDPath, }).Get(activityOpts, &xmlvalidateResult) - // Allow PREMIS XML to not exist without failing workflow. if err != nil { if strings.Contains(err.Error(), fmt.Sprintf("%s: no such file or directory", xmlPath)) { + // Allow PREMIS XML to not exist without failing workflow. err = nil } else { pt.Status = enums.PreservationTaskStatusError