diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index e7c52a1af0f8..37bfd36683ea 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -3772,7 +3772,7 @@ class DuplicateFileToCollectionTool(DatabaseOperationTool): def produce_outputs(self, trans, out_data, output_collections, incoming, history, **kwds): hda = incoming["input"] - number = incoming["number"] + number = int(incoming["number"]) element_identifier = incoming["element_identifier"] elements = { f"{element_identifier} {n}": hda.copy(copy_tags=hda.tags, flush=False) for n in range(1, number + 1)