diff --git a/lib/galaxy/metadata/set_metadata.py b/lib/galaxy/metadata/set_metadata.py index 58b8a2f5a15f..221346b8b438 100644 --- a/lib/galaxy/metadata/set_metadata.py +++ b/lib/galaxy/metadata/set_metadata.py @@ -421,6 +421,9 @@ def set_meta(new_dataset_instance, file_dict): dataset.dataset.created_from_basename = created_from_basename elif os.path.exists(dataset_path_to_extra_path(external_filename)): # Only output extra files dir, but no primary output file, that's fine + if dataset.datatype.composite_type == "auto_primary_file": + with open(external_filename, "wb"): + pass pass else: raise Exception(f"Output file '{external_filename}' not found")