error in validate_mapping_file

Skip to first unread message

Nov 24, 2020, 11:00:37 AM11/24/20
to Qiime 1 Forum
Hello Dear QIIME users
please help me out here as I am getting an unwanted error while running the command
please help out here
Traceback (most recent call last):
  File "/usr/local/bin/", line 162, in <module>
  File "/usr/local/bin/", line 158, in main
    disable_primer_check, added_demultiplex_field, suppress_html)
  File "/usr/local/lib/python2.7/dist-packages/qiime/", line 97, in check_mapping_file
    added_demultiplex_field, strip_quotes=False, suppress_stripping=True)
  File "/usr/local/lib/python2.7/dist-packages/qiime/", line 182, in process_id_map
  File "/usr/local/lib/python2.7/dist-packages/qiime/", line 822, in check_header
    desc_ix, bc_ix, linker_primer_ix, added_demultiplex_field)
  File "/usr/local/lib/python2.7/dist-packages/qiime/", line 888, in check_header_required_fields
    if (header[curr_check] != header_checks[curr_check] and
IndexError: list index out of range


Nov 24, 2020, 11:57:24 AM11/24/20
to Qiime 1 Forum

The standard disclaimer: QIIME1 is no longer being updated, and we'd advise moving to QIIME2.


The metadata mapping files are very similar between the versions, so you might check your format here:

And you can download an example mapping file here:

I would guess that you have an invalid formatted mapping file. It needs to be tab-delimited text file (not, for example, an excel formatted .xlsx file ).

I'd recommend comparing the example mapping file above and your mapping file in a plain text editor to see if the formatting is correct and you have the correct headers.

Reply all
Reply to author
0 new messages