GTFS Express Open GTFS Express

missing_required_agency_id: GTFS validation rule Error

The GTFS has more than one agency and an agency_id is empty in agency.txt, routes.txt or fare_attributes.txt. The identifier is required as soon as there are several agencies.

Updated on 13 November 2026

What the rule checks

The GTFS has more than one agency and an agency_id is empty in agency.txt, routes.txt or fare_attributes.txt. The identifier is required as soon as there are several agencies.

Severity: error

An error marks data that breaks the GTFS specification. A journey planner or a rider app may refuse the file, or show a wrong version of it. Correct it before publishing the GTFS.

Where it applies

The rule applies to agency.txt and routes.txt and fare_attributes.txt.

Finding and correcting it

Open the GTFS in GTFS Express. Reading is free, and the validation, by the MobilityData validator, lists the occurrences of missing_required_agency_id with the file and rows involved. The correction is made in a draft, by hand or from a brief, with the licence: the corrected GTFS is validated again before it is delivered, and the change can be undone.

In the MobilityData validator

missing_required_agency_id is the code of the MobilityData GTFS validator, the one its report carries. Its documentation describes the rule: missing_required_agency_id on the MobilityData site.

Rules of the same domain