A validator report comes back with forty lines of output, most of it unreadable to anyone who has not memorized the specification, and a deadline that does not care. The truth is that most of what a validator prints never stops anything. Only a small set of GTFS validation errors actually block a feed from being accepted. Knowing which lines those are, on sight, is the difference between a five-minute fix and a wasted afternoon guessing.
This is a reference for that moment. Search the exact message, find the entry, fix it, move on.
What Is GTFS Validation?
GTFS validation is an automated check of a General Transit Feed Specification (GTFS) dataset against the published specification. It confirms required files are present, required fields are populated, identifiers are internally consistent, and values are correctly formatted. A validator reports every problem it finds as either an error or a warning, and only errors stop a feed from being accepted by a consumer.
Errors Versus Warnings: The Distinction That Matters Most
Every validator report mixes two severities together, and treating them the same is a common reason a fix takes longer than it should. An error means the feed fails structural or referential rules the specification treats as mandatory. Google and many aggregators reject the entire feed when a blocking error is present, not just the affected route or stop. A warning means the data is technically valid but likely wrong, incomplete, or bad for riders in a way the standard does not forbid outright.
That split changes how to work through a report. Fix every error first, in any order, because none of them will let the feed through regardless of what else gets corrected. Warnings can wait for a second pass, and some are judgment calls rather than defects. A report with one error and thirty warnings is a five-minute problem. A report with one error and zero warnings is exactly as urgent.
The Twelve GTFS Validation Errors That Block Acceptance
These are the GTFS validation errors that most often stop a small-agency feed cold, mapped to the file each one originates in, per the gtfs.org schedule reference.
missing_required_file
What it means. One of the files the specification treats as mandatory is not present in the zip archive.
Usual cause. An export script skipped a file that had no rows to write, or the file sits inside a nested folder instead of at the root of the zip.
The fix. Confirm all required files sit directly at the archive root, not inside a subfolder. Check that agency.txt, stops.txt, routes.txt, trips.txt, stop_times.txt, and either calendar.txt or calendar_dates.txt are all present.
missing_required_field
What it means. A row exists in a required file, but a field that row must populate is blank.
Usual cause. Most often stop_lat or stop_lon left empty in stops.txt for a stop added quickly and never finished, or route_type skipped in routes.txt.
The fix. Fill every required field the gtfs.org reference marks as required for that file, not just the ones that happened to have a value in the source spreadsheet.
foreign_key_violation
What it means. A row references an identifier that does not exist anywhere in the file that is supposed to define it.
Usual cause. A route_id in trips.txt that does not match any row in routes.txt, or a trip_id in stop_times.txt with no corresponding trip. This happens constantly after a route is renamed or deleted in one file but not everywhere it is referenced.
The fix. Trace the orphaned identifier back to its defining file and either add the missing row or correct the reference. A find-and-replace across every file that touches the changed ID prevents this after any renumbering.
duplicate_key
What it means. Two rows in the same file share a value in a field that the specification requires to be unique.
Usual cause. A stop_id or trip_id copied from an existing row as a shortcut for creating a new one, with the ID never actually changed.
The fix. Give the new row its own unique identifier. Never reuse an ID that already exists anywhere in the feed’s history, even one retired long ago; see stop_id stability for why reuse specifically breaks more than validation.
invalid_row_length
What it means. A data row has a different number of fields than the header row for that file.
Usual cause. A comma inside a stop name or route description was not quoted correctly when the file was exported from a spreadsheet. Every field after it shifts by one column.
The fix. Quote any text field containing a comma, and re-export from the source spreadsheet rather than hand-editing the raw text file.
csv_parsing_failed
What it means. The file cannot be read as valid comma-separated text at all.
Usual cause. The file was saved with the wrong character encoding, most often a Windows-only encoding instead of UTF-8. Or a stray byte-order mark was left at the start of the file.
The fix. Re-save every GTFS file as UTF-8 without a byte-order mark before zipping. Most spreadsheet software has a specific “CSV UTF-8” export option; use it instead of the default CSV export.
invalid_date
What it means. A date value is not formatted the way the specification requires.
Usual cause. start_date or end_date in calendar.txt, or date in calendar_dates.txt, entered with slashes or a locale-specific format instead of the required YYYYMMDD pattern.
The fix. Reformat every date field to eight digits with no separators, for example 20260901, and check any spreadsheet formula that may have silently reformatted the column when the file was last edited.
invalid_time
What it means. A time value in stop_times.txt is not formatted as HH:MM:SS, or falls outside the range the specification allows.
Usual cause. A trip running past midnight recorded with a reset clock, 01:15:00 instead of 25:15:00 for 1:15 AM the next service day.
The fix. Use the GTFS 24-plus-hour convention for any time after midnight on a trip that started the previous service day, and never let hours reset to zero mid-trip.
stop_time_with_arrival_before_previous_departure_time
What it means. Within a single trip, a stop’s arrival time is earlier than the departure time recorded for the stop before it in stop_times.txt.
Usual cause. Almost always the same past-midnight clock reset that causes an invalid time error, or a manual edit to one row that was not carried through the rest of the trip’s sequence.
The fix. Walk the full stop sequence for the affected trip in order and confirm every time moves forward, correcting the 24-plus-hour convention wherever it was missed.
block_trips_with_overlapping_stop_times
What it means. Two trips assigned the same block_id in trips.txt have overlapping stop times, which describes one vehicle running two schedules at once.
Usual cause. A block assignment left over from a previous schedule version, where a trip’s times changed but its block partner’s did not.
The fix. Confirm every trip sharing a block_id has non-overlapping times with enough gap between them for the vehicle to actually reach the next trip’s starting stop.
start_and_end_range_out_of_order
What it means. A start date falls after its matching end date, most often start_date and end_date in calendar.txt, or feed_start_date and feed_end_date in feed_info.txt.
Usual cause. A copy-paste of a previous season’s row where only one of the two dates was updated for the new period.
The fix. Update both dates together whenever either one changes, and confirm the start date is chronologically before the end date before republishing.
wrong_parent_location_type
What it means. A stop’s parent_station field in stops.txt points to another row that is not itself flagged as a station.
Usual cause. A platform or entrance pointed at a sibling stop instead of the actual parent station row, usually from confusing two stops that share a name.
The fix. Confirm every parent_station value points to a row with location_type set to a station, and see parent stations for how the hierarchy is supposed to work.
The Warnings Worth Fixing Anyway
None of the five below will get a feed rejected. Each one still degrades what a rider actually sees, which is reason enough to clear them before publishing rather than after a complaint.
Poor route color contrast. route_color and route_text_color in routes.txt fail to meet a readable contrast level. A route badge that looks fine on a designer’s monitor can be nearly unreadable against a phone screen in daylight.
Duplicate route names. Two routes share the same route_short_name or route_long_name in routes.txt. A rider comparing two nearly identical options in a trip planner has no way to tell them apart.
A stop far from its trip’s shape. A stop’s coordinates in stops.txt sit an unreasonable distance from the path defined in shapes.txt for trips serving it. The stop pin and the route line disagree on a map, and one of them is wrong.
A feed nearing its expiration date. The service dates in calendar.txt or feed_info.txt are valid today but end soon. The feed passes validation now and silently disappears from Google Maps the day after it lapses, with no error message anywhere to explain why.
An unused trip. A trip exists in trips.txt with no rows at all in stop_times.txt. It never appears in any timetable a rider can see, and if it was meant to run, riders are missing a trip nobody noticed was gone.
How Do You Validate Before You Publish?
Run every feed through the MobilityData GTFS validator before it goes anywhere near a submission. MobilityData maintains the validator as the canonical, open-source implementation of the specification’s rules. It is the same category of check most consumer platforms run on intake, so a clean report from it is the best early signal a feed will be accepted.
The validator is available as a hosted web tool for a quick check, and as a command-line and desktop application for running it repeatedly without uploading anything. Either way, the report separates errors from warnings and names the file, row, and field for each finding. Run it against the finished zip archive, not against individual text files pulled out separately, since several of the errors above only surface when files are checked against each other.
A feed that validates cleanly is not automatically a feed that is correct, only one that is structurally sound. How to publish GTFS data to Google Maps covers what a consumer checks beyond structural validation, including plausibility checks a validator does not run at all.
Preventing the Recurring Ones
Most of the twelve errors above are not one-time mistakes. They come back, on the same feed, every time it changes, unless the process around it changes too.
Validate before every publish, not just the first one. A feed that validated cleanly six months ago can accumulate a fresh error the moment a service change touches calendar.txt or stop_times.txt. The only way to catch it before a rider does is to run the check again on the updated file. Running a schedule change without breaking the feed covers the sequence that keeps a routine update from reintroducing errors that were already fixed once.
Keep one person or a small, named group responsible for the feed, even at a small agency where that person wears several other hats. A feed that anyone can edit and nobody specifically owns tends to accumulate exactly the copy-paste duplicate keys and orphaned foreign keys covered above, because no one edit looks risky on its own.
Never reuse a retired identifier. A stop_id, trip_id, or route_id that once existed should stay retired permanently rather than being recycled for something new. A reused ID can pass validation today and still break a consumer that cached the old meaning.
FAQ
Does One Blocking Error Reject the Whole Feed, or Just the Affected Part?
Most consumers, including Google’s intake process, reject the complete feed rather than accepting everything except the broken part. There is no partial acceptance for a structurally invalid GTFS dataset.
Where Do I Find the Exact Rule Definitions Behind a Validator Message?
The gtfs.org schedule reference is the specification itself and defines every required and optional field by file. The MobilityData GTFS validator documentation explains what each specific notice checks for and why.
Do Warnings Ever Turn Into Errors in a Future Validator Version?
MobilityData updates the validator as the specification and best practices evolve, and a warning today is not guaranteed to stay a warning forever. Clearing warnings when they are found is cheaper than discovering later that one has been upgraded.
Talk to Us About Your GTFS
TransitFare is a transit technology company founded in 2012 that builds GTFS publishing and rider information tools for small and mid-sized transit agencies running 10 to 50 vehicles. The platform behind it has maintained a strong production reliability record, and a software-only rollout of TransitFare Cloud is typically live in about 4 weeks. GTFS validation is not a one-time gate. It is a check that has to pass again every time the schedule changes, which is exactly the kind of recurring, unglamorous discipline a small agency’s tools should be built to support rather than leave to memory. Talk to us about your GTFS, or see the GTFS starter kit. A feed that clears every validator error can still stall in review, which is what speeding up Google’s GTFS feed audit is about.