Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Problem Codes

Every problem has a level, a code, a message and, usually, a location. On the Problems page each one is a row; labcatalog check prints each one as a line:

{location}: {level} [{code}] {message}

Errors mean a result cannot be trusted; warnings point to something worth a look. labcatalog check exits with status 1 when there is any error. Fix Reported Problems explains how to work through them.

Loading comes first: if a file cannot be read (the codes in the first table), the other checks do not run until it is fixed. The data are read only when the metadata have no errors.

Reading the files

CodeLevelMeaning
yaml_syntaxerrorA YAML file cannot be read: a misplaced colon, a tab used for indentation, an unclosed quote or bracket, or a file not saved as UTF-8. The location gives the line when it can.
extra_forbiddenerrorA key labcatalog does not know, usually a misspelling: “unknown key; check the spelling”.
missingerrorA required key is missing: “required but missing”.
other type codeserrorA value of the wrong type, such as literal_error (not one of the allowed words), string_type, list_type, bool_parsing or date_from_datetime_parsing. The message names the key and what was expected.
map_encodingerrorA column map is not UTF-8; in Excel, save it as “CSV UTF-8”.
bib_encodingerrorreferences.bib is not UTF-8; export it from the reference manager as UTF-8.
map_headererrorA column map’s header lacks column, instrument or item.
map_rowerrorA row of a column map has an instrument without an item or the other way round, or no column.
bib_syntaxerrorAn entry in references.bib cannot be read.
not_downloadederrorA project file in a DataLad dataset has no content on this computer; get it with datalad get.

Metadata

CodeLevelMeaning
not_in_vocaberrorA modality, reporter or target is not in vocab.
unknown_referenceerrorSomething names an ID that does not exist: a study, wave, dataset, instrument, item, score, response set or facet. Also a column map for a dataset that is not in labcatalog.yaml, or one that maps an instrument not given in that dataset.
duplicate_iderrorTwo things share an ID: datasets, instruments, studies, items, scores, response sets, option values, prepare steps, kept analyses, reference keys, or rows of a column map.
invalid_valueerrorA value that cannot work, for example a choice item without options, min above max, a score of text items, min_valid out of range or missing from a prorate score, an invalid regular expression in ids, a dataset without path, or an unknown placeholder in a template, or a kept analysis whose script is missing. One case is a warning: min_valid with missing_rule: complete, where it has no effect.
undeclared_custom_fielderrorA custom value for a field not declared in custom_fields, or declared for something else.
missing_code_collisionerrorA response option has the same value as a missing code of a dataset where the instrument is given.
map_missingerrorA dataset has administrations but no column map.
unmapped_itemwarningItems of an instrument given in a dataset have no column in its map and are not dropped by an override.
references_root_missingwarningThe folder in references.root does not exist on this computer.
bib_missingwarningSomething cites a reference, but there is no references.bib.
reference_missingwarningA reference key is not in references.bib.
pdf_missingwarningA reference’s PDF is not where its pdf says.

Data

CodeLevelMeaning
column_missingerrorThe column map, or a dataset’s date_column, names a column that is not in the data.
column_unmappedwarningThe data have columns that the column map does not list, nor the map of another dataset that reads the same file.
wave_unclaimedwarningA file read by datasets with a wave_column has rows for a wave none of them reads.
unexpected_valueerrorValues that are neither response options nor missing codes, or numbers outside min and max.
id_missingerrorRows without an ID.
id_whitespaceerrorIDs with leading or trailing spaces.
id_patternerrorIDs that do not match ids.pattern, or the study’s own id_pattern.
id_duplicateerrorIDs that appear more than once in one file.
group_missingwarningIDs from which no group can be read, or people the roster lists without a group.
id_not_in_rosterwarningIDs in the data that their study’s roster does not list.
roster_unusedinfoPeople in a study’s roster who are in no dataset of the study.
reporter_mismatchwarningRespondents whose role in the roster (the roster’s role_column) is not the dataset’s reporter.
role_unknownwarningRoles in the roster that are not in vocab.reporters.
id_map_invaliderror or warningA line of id_map.csv gives an ID two corrections or no new ID (error), or names a dataset the project does not have (warning).
excluded_presenterrorRows of people or groups on the exclusion list.
possible_identifierwarningA column whose name or values suggest names, emails, phone numbers, addresses or birth dates.
date_unparseablewarningDates in the date_column that do not match defaults.date_format.
same_answerwarningPeople who gave the same answer to every item of a score with five or more items.
score_mismatcherrorA score column in the data or in the scores file differs from the score labcatalog computes.
score_coveragewarningRows with a score in the data but not in labcatalog’s computation, or the other way round.
scores_missingwarningA dataset’s scores file does not exist yet, or a score with method: script has no scores file for its instrument or no column in it.
scores_unmatchedwarningIDs in a dataset’s scores file that are not in its data.
scores_repeatedwarningIDs a dataset’s scores file gives more than one row, within the dataset’s own wave when the file has its wave_column; they take no score from it.
prepare_output_missingwarningA prepare step’s output does not exist, or has not been downloaded.
prepare_outdatedwarningA prepare step’s output is older than one of its inputs.
git_annex_not_foundwarningThe project’s files are in DataLad datasets, but git-annex cannot be found, so their versions are not recorded.

Codebook import

Problems found by Check and import in the Codebook step or under Files without a column map on the Set up page all have the code codebook. The location is the codebook file and line, such as codebook/parent_w1/items.csv:12, and the message says what is wrong in that row.

Accepted warnings

accepted_warnings.yaml in the project folder lists the warnings someone looked at and recorded as fine, from the Fix panel on the Problems page. labcatalog writes it; it can also be edited by hand.

accepted:
  - {code: same_answer, location: data/child_w1.csv, message: 'example_mood.ems_total@child_w1: 2 participant(s) gave the same answer to every item: 1021C, 1093C', reason: Checked the paper forms, by: Qiuyu, date: 2026-10-16}
KeyMeaning
codeThe problem’s code.
locationThe problem’s location, left out when it has none.
messageThe problem’s message, word for word.
reasonWhy the warning is fine.
byWho accepted it: the name git records for them, or the computer’s user name.
dateThe day it was accepted.

A warning is hidden only while its code, location and message all match an entry, so it shows again as soon as its message changes. Entries that match an error do nothing: errors are always reported. labcatalog check ends with the number of accepted warnings it did not print. A mistake in the file itself is reported like a mistake in any other project file.

Errors that stop the check

Some problems stop the check before it can run, and labcatalog check prints them as Error: ... instead: a data file or ID column that cannot be found, a data file that is not UTF-8, or a missing exclusion list. Fix the cause and check again.