Use this information in (all) your templates to ensure it is based on the expected dataset.
<#if !dataset??>
<#stop "dataset element is missing!">
<#elseif dataset.name!="CompMetaDataSet">
<#stop "Invalid dataset! Is the provided template compatible the with executed command?">
</#if>