diff --git a/lib/galaxy/tools/actions/__init__.py b/lib/galaxy/tools/actions/__init__.py
index 21aa7a7055d..2ad4ea8e783 100644
--- a/lib/galaxy/tools/actions/__init__.py
+++ b/lib/galaxy/tools/actions/__init__.py
@@ -602,11 +602,12 @@ def determine_output_format(output, parameter_context, input_datasets, input_dat
if collection_name in input_dataset_collections:
try:
- input_collection = input_dataset_collections[collection_name]
+ input_collection = input_dataset_collections[collection_name][0]
input_dataset = input_collection.collection[element_index].element_object
input_extension = input_dataset.ext
ext = input_extension
- except Exception:
+ except Exception, e:
+ log.debug("Exception while trying to determine format_source: %s", e)
pass
# process change_format tags
diff --git a/test/functional/tools/output_format_collection.xml b/test/functional/tools/output_format_collection.xml
index 6085b9bb7ee..17951798344 100644
--- a/test/functional/tools/output_format_collection.xml
+++ b/test/functional/tools/output_format_collection.xml
@@ -8,9 +8,9 @@
-
+
-
+
diff --git a/test/unit/tools/test_actions.py b/test/unit/tools/test_actions.py
index 5ce1e79d327..a57b960a3fd 100644
--- a/test/unit/tools/test_actions.py
+++ b/test/unit/tools/test_actions.py
@@ -212,7 +212,7 @@ def __assert_output_format_is( expected, output, input_extensions=[], param_cont
dce2 = model.DatasetCollectionElement(collection=c1, element=hda_reverse, element_identifier="reverse", element_index=1)
c1.elements = [dce1, dce2]
- input_collections["hdcai"] = hc1
+ input_collections["hdcai"] = (hc1, False)
actual_format = determine_output_format( output, param_context, inputs, input_collections, last_ext )
assert actual_format == expected, "Actual format %s, does not match expected %s" % (actual_format, expected)