Diagnosis
What this notice means
invalid_color is an error in a GTFS Schedule validation report: a color is not a six-digit hexadecimal value. The report row names the file to check.
The reported color does not use the required format, such as 0039A6.
Operational effect
Why it matters
Apps may ignore the color or display an unintended fallback.
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
Find
fieldNamein the reported row. - 2
Use six hexadecimal digits without
#; for example, change#0039A6to0039A6. If an optional color is unknown, leave it empty rather than inventing a brand color. - 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.
Worked example
Example correction
Preserve the intended color while correcting its format.
Before
route_color: #0039A6After
route_color: 0039A6Illustrative excerpt, not a complete GTFS feed. Keep all other required records and fields.
Sources