When EXPORT-FILE-NAME option is specified, the ExportBatchToFileTask is enabled.
Users have encountered a situation in which the EXPORT-FILE-NAME option was specified with a blank/empty value (expecting no export file to be generated), and because the ExportBatchToFileTask was enabled, it threw an error requiring a filename to be specified.
If the value of EXPORT-FILE-NAME is empty or blank and no filename specified then it should not auto-magically enable the ExportBatchToFileTask.