PDS Error List: What Each Validation Error Means
In this article
A PDS error list is the set of messages the PDS4 validation tool prints when a data product, label, or bundle breaks the archive standards. Most entries come from three sources: label fields that do not match the PDS4 Information Model, files whose contents disagree with the label, and structural problems in a bundle or collection.
Time 20 min · Steps 6 · Level Medium
The errors that show up most often in a PDS report
- Missing or misplaced required attribute. The label omits a field the Information Model requires, or puts it in the wrong class, so the validator reports it as absent even though you thought you included it.
- Schema and schematron failures. The label does not validate against the PDS4 schema for the discipline area it claims, which usually means a namespace, version, or element ordering problem.
- Data-to-label mismatch. The label says the table has a different number of rows, records, or bytes than the file actually contains.
- Context product references that do not resolve. An LID or LIDVID in the label points to a context product the validator cannot find in the reference set you supplied.
- Bundle and collection structure errors. Files sit in the wrong directory, a collection inventory misses members, or bundle member entries do not match what is on disk.
- File naming and version problems. Filenames or version IDs break the naming rules, or two products share an identifier that must be unique.
Reading the error list: message, cause, and fix
Each line in a validation report gives a message identifier, a severity, and the file it came from, so the fastest route is to group the lines by cause rather than fixing them one at a time. The table below maps the messages people most often ask about.
| Message you see | Usual cause | Fix |
|---|---|---|
| Missing required attribute | Field omitted or placed in the wrong class in the label | Add the attribute where the Information Model expects it |
| Schema validation failed | Wrong namespace, outdated schema version, or elements out of order | Regenerate the label from a current template for your discipline area |
| Record count mismatch | Label's record or byte counts differ from the actual file | Recount the file and update the label, or re-export the data |
| Unresolved context reference | LID/LIDVID points to a context product not in your reference set | Check the identifier for typos and validate with the context bundle loaded |
| File not in expected location | Bundle or collection directory layout is wrong | Move the file to the directory its label and inventory entry point to |
| Duplicate identifier | Two products share an LID or LIDVID | Give each product a unique version ID or product identifier |
Severity matters when you triage: errors block archiving, warnings usually mean something suspicious but not fatal, and info lines are advisory. Fix every error first, then work through warnings, because many warnings disappear once the underlying errors are corrected.
Fixing the most common error: a missing or misplaced attribute
Most first-time validation runs fail on required attributes, and the fix is mechanical once you see the pattern.
- Open the report and find the first error line. Note the file it names and the attribute it says is missing.
- Open that label in a text editor. Search for the attribute name; if it exists, the problem is placement, not absence.
- Check the class it sits in. The Information Model defines which class each attribute belongs to, so an attribute inside the wrong parent class reads as missing.
- Move or add the attribute in the correct class. Copy the exact spelling and capitalisation from the Information Model or a known-good label, because these names are case-sensitive.
- Re-run validation on that one file. Do not re-run the whole bundle yet; confirm the single fix first.
- Apply the same fix to sibling labels. If the labels were generated by the same script, the error repeats across products, so fix the template once and regenerate.
How to tell the fixes worked
A clean run ends with a summary showing zero errors, and the only remaining lines are warnings or info messages you have reviewed and can justify. If the count of errors drops but new error types appear, that is normal: the validator stops at the first structural problem in some checks, so fixing one layer exposes the next. Keep re-running until the error count stays at zero across two consecutive runs on the full bundle.
Quick checks before you re-run the whole validation
- Every label file has the correct namespace declarations at the top.
- Record, row, and byte counts in each label match the actual file sizes.
- Every LID and LIDVID in the labels resolves against the context products you loaded.
- Directory layout matches the bundle structure: products inside their collection directories, inventories listing exactly the members present.
- Filenames follow the naming rules for your product type, with no spaces or characters the rules disallow.
Where do the error messages themselves come from?
The messages are defined by the PDS4 standards: the Information Model defines what a valid label contains, the schema and schematron enforce it, and the validation tool reports each rule that fails. That is why the wording is terse and identifier-based rather than conversational. The tool also has a content validation mode that opens the actual data files and checks them against the label, which is where the record-count and byte-offset messages come from; if your report only shows label errors, you may not have enabled that mode yet.
Can you ignore warnings in a PDS error list?
You can leave warnings in place only when you understand why each one appears and can document the reason, because reviewers at the archive node read the report too. A warning about an optional attribute you deliberately omitted is fine; a warning about a suspicious date or an unusual unit usually signals a real mistake worth investigating. When in doubt, treat warnings as errors until you can explain them, since a label that passes with warnings you cannot account for tends to come back from peer review with questions anyway.
Official source: NASA Planetary Data System