Issue viewing artifact as qiime2 metadata

I have been having some issues with converting the taxonomy.qza artifact into a qiime2 visualizer after taxonomy has been assigned using the following command:

There was an issue with viewing the artifact taxonomy.qza as QIIME 2 Metadata:

qiime metadata tabulate --m-input-file taxonomy.qza --o-visualization taxonomy.qzv

An error message comes up which is pasted below:
CategoricalMetadataColumn does not support values with leading or trailing whitespace characters. Column ‘Taxon’ has the following value: 'D_0__Bacteria;D_1__Bacteroidetes;D_2__Ignavibacteria;D_3__OPB56;D_4__uncultured bacterium ’

I think the issues is whitespace in the taxonomy.qza. How should this be rectified?

Many thanks


Hi @mcunningham48,

I agree, I think you do have a white space in your taxonomy. Im wondering how you got there, though. Could you describe how you got to the taxonomy artefact?