GTFS errors and fixes.
Plain-language guides to GTFS findings and data gaps that affect riders most. Start with the code on your scorecard, then follow the steps and republish the feed.
Service dates and freshness
big_gap_in_service: a calendar gap of more than 13 days
One service_id has more than 13 days with no service. Fix: extend calendar.txt or add calendar_dates.txt exceptions; a real seasonal gap can stay.
Finding code: big_gap_in_service
Service calendars that have already expired
Some calendar.txt rows end in the past. Fix: turn on your export's active-service-only option, then confirm the remaining calendars reach weeks ahead.
Finding code: expired_calendar
feed_expiration_date30_days: the feed expires within 30 days
feed_end_date in feed_info.txt is less than a month away. Fix: re-export with a later end date and keep exporting on a regular schedule.
Finding code: feed_expiration_date30_days
feed_expiration_date7_days: the feed expires within 7 days
feed_end_date is within a week, and trip planners drop the agency when it passes. Fix: re-export today with a later end date and publish to the same URL.
Finding code: feed_expiration_date7_days
The feed_info end date is before your service calendar
feed_end_date is earlier than the last service date in your calendar. Fix: set feed_end_date in feed_info.txt to your calendar's last day.
Finding code: scorecard_feed_end_date_before_calendar
The feed does not state its validity dates
feed_info.txt has no feed_start_date or feed_end_date. Fix: add feed_info.txt with the publisher fields and the validity window in YYYYMMDD.
Finding code: scorecard_missing_feed_info_dates
The ServiceAlerts realtime feed failed
The scorecard could not read your ServiceAlerts feed. Fix: ask your AVL vendor to check the endpoint returns fresh GTFS-Realtime data at the same URL.
Finding code: scorecard_rt_service_alerts_unreachable
A calendar with no days switched on
A calendar.txt row has monday through sunday all set to 0. Fix: switch on the days it runs, or delete the row and the trips that use it.
Finding code: service_has_no_active_day_of_the_week
Service dates outside the feed's validity window
Calendar dates fall outside feed_start_date and feed_end_date. Fix: update the feed_info.txt dates or trim the stray service periods.
Finding code: service_window_outside_feed_period
Accessibility
A station with no pathways.txt
stops.txt models a station but the feed has no pathways.txt. Fix: add pathways.txt and levels.txt for multi-level stations; a flat stop needs neither.
Finding code: scorecard_station_no_pathways
Trips with no wheelchair accessibility value
trips.txt leaves wheelchair_accessible blank. Fix: set 1 or 2 on each trip; a fully accessible fleet is usually one default in your export.
Finding code: scorecard_wheelchair_accessible_unknown
Stops with no wheelchair boarding value
stops.txt leaves wheelchair_boarding blank. Fix: set 1 (accessible) or 2 (not accessible) on each stop, starting with the busiest.
Finding code: scorecard_wheelchair_boarding_unknown
Routes, stops, and shapes
A duplicated point in a route shape
Two consecutive shapes.txt rows repeat the same point. Fix: delete one row and renumber shape_pt_sequence so it still increases.
Finding code: equal_shape_distance_same_coordinates
A bus moves impossibly fast between two stops
Two consecutive stop times imply an impossible speed. Fix: correct the mistyped time or the misplaced stop coordinates, or merge duplicate stops.
Finding code: fast_travel_between_consecutive_stops
Impossibly fast travel between distant stops
The times between two far-apart stops imply a speed no bus reaches. Fix: check the stop times first, then the stop coordinates, then a missing stop.
Finding code: fast_travel_between_far_stops
Route color and text color do not contrast
route_color and route_text_color are too close in brightness to read. Fix: set route_text_color to 000000 or FFFFFF, whichever contrasts more.
Finding code: route_color_contrast
Scheduled trips with no live predictions
Some scheduled trips have no TripUpdates prediction. Fix: ask your AVL vendor to confirm every vehicle assignment flows into TripUpdates.
Finding code: scorecard_rt_trip_coverage
The TripUpdates realtime feed failed
The scorecard could not read your TripUpdates feed. Fix: ask your AVL vendor to check the endpoint returns fresh GTFS-Realtime data at the same URL.
Finding code: scorecard_rt_trip_updates_unreachable
Stop names written in ALL CAPS
Your stop_name values are in capitals. Fix: bulk-convert them to mixed case (Main St & 2nd Ave) in your scheduling tool.
Finding code: scorecard_stop_names_all_caps
stop_too_far_from_shape: a stop sits far from the route line
A stop is far from its route's shapes.txt path. Fix: correct the stop's stop_lat and stop_lon, or regenerate the shape so it passes the stop.
Finding code: stop_too_far_from_shape
A stop far from the shape by shape_dist_traveled
A stop is far from the shape at its shape_dist_traveled value. Fix: correct the shape, the stop coordinates, or regenerate shape_dist_traveled.
Finding code: stop_too_far_from_shape_using_user_distance
stop_without_stop_time: stops that no trip ever serves
Some stops.txt rows appear in no stop_times.txt row. Fix: remove retired stops from the export, or restore them to the trips that should serve them.
Finding code: stop_without_stop_time
Many trips do not run in the next 7 days
Most trips have no service on any of the next seven days. Fix: trim past service periods and publish the current schedule.
Finding code: trip_coverage_not_active_for_next7_days
Trips slightly longer than their shape
A trip's stops travel a little farther than its drawn shape. Fix: extend the shape to the first and last stops, or correct the outlying stop.
Finding code: trip_distance_exceeds_shape_distance_below_threshold
unused_shape: route shapes no trip uses
shapes.txt has shapes that no trip references. Fix: turn on remove-unused-shapes in your export, or retire the old patterns that left them.
Finding code: unused_shape
Fares
A fare amount has the wrong number of decimals
A fare amount does not match its currency's decimals. Fix: write US dollar amounts with two decimals (2.50, not 2.5) and check currency_type.
Finding code: invalid_currency_amount
The feed contains no fare information
The feed has no fare files. Fix: for a flat fare, add fare_attributes.txt and fare_rules.txt with the right currency, such as USD.
Finding code: scorecard_no_fare_data
Feed structure and publishing
feed_info.txt has no feed_contact_email or feed_contact_url. Fix: add one; a role inbox such as gtfs@youragency.org outlasts staff changes.
Finding code: missing_feed_contact_email_and_url
missing_recommended_field: recommended fields left empty
The notice names a file and column the spec recommends but your feed leaves empty. Fix: fill that column in your export settings.
Finding code: missing_recommended_field
missing_recommended_file: a recommended GTFS file is missing
A recommended file, usually feed_info.txt, is absent from the zip. Fix: turn on feed_info.txt in your export and enter the publisher details once.
Finding code: missing_recommended_file
A required column is missing from a file
A file lacks a column the GTFS spec requires. Fix: add the column the notice names, with a valid value on every row, from your export settings.
Finding code: missing_required_column
Stop times without a timepoint value
Some stop_times.txt rows leave timepoint blank. Fix: write 1 for scheduled checkpoints and 0 for estimated times on every row.
Finding code: missing_timepoint_value
Names in ALL CAPS or all lowercase
Rider-facing text such as stop_name is in a single case. Fix: rewrite it in mixed case (Main St & 2nd Ave) and keep real acronyms as they are.
Finding code: mixed_case_recommended_field
scorecard_feed_expired: the feed has already expired
The earlier of feed_end_date and your last calendar date has passed. Fix: re-export today with a calendar and feed_end_date further out.
Finding code: scorecard_feed_expired
scorecard_feed_expiring_soon: service coverage expires soon
Your feed's earlier end date is under 30 days away. Fix: re-export with a validity window at least 60 days out, and export on a routine.
Finding code: scorecard_feed_expiring_soon
Flexible service with no booking rules
The feed describes flexible service but has no booking_rules.txt. Fix: add it, and reference it from stop_times.txt with the booking rule ids.
Finding code: scorecard_flex_no_booking_rules
scorecard_missing_headsigns: trips with no headsign
Trips leave trip_headsign blank where a route has several directions or patterns. Fix: set the rider-facing destination once per pattern.
Finding code: scorecard_missing_headsigns
The feed lists no technical contact
feed_info.txt has no contact email or URL. Fix: add feed_contact_email, ideally a role inbox, or feed_contact_url.
Finding code: scorecard_no_feed_contact
The VehiclePositions feed failed
The scorecard could not read your VehiclePositions feed. Fix: ask your AVL vendor to check the endpoint returns fresh GTFS-Realtime data at the same URL.
Finding code: scorecard_rt_vehicle_positions_unreachable
unknown_column: columns that are not part of GTFS
A file has a column the GTFS spec does not define. Fix: correct it if it is a typo of a real field; otherwise remove it or leave it.
Finding code: unknown_column
unknown_file: a file that is not part of GTFS
The zip has a file the spec does not define. Fix: rename it if it is a misspelled GTFS file; otherwise remove it or leave it.
Finding code: unknown_file