Diagnosis
What this notice means
invalid_language_code is an error in a GTFS Schedule validation report: a language tag is invalid. The report row names the file to check.
The value does not use a supported BCP 47 language tag.
Operational effect
Why it matters
Apps may use the wrong language or pronunciation for text.
Scope
Files to check and report fields
Use the file or input resource identified in the report. Check the message and available context fields; runtime failures may not identify a GTFS row.
| Report field | Type | Meaning |
|---|---|---|
csvRowNumber | integer | The row of the faulty record. |
fieldName | string | Faulty record's field name. |
fieldValue | string | Faulty value. |
filename | string | The name of the faulty file. |
Repair
How to fix it
- 1
Identify the language actually used in the field or dataset.
- 2
Use a valid tag such as
en,en-US, orde, instead of a language name or a locale written with an underscore. - 3Check the result
After a repair, rebuild the archive and validate it again. Confirm that the affected records are correct and that no new related notices appeared. A reviewed warning or informational notice may remain when it describes intentional, supported data.
Re-check your feed in the browserFree, no upload for a file you pick.
Sources