add error management in case of an output set and both outputformats provided