Diagnosis
What this notice means
invalid_line_ending is an error in a GTFS Schedule validation report: a file uses an unsupported line ending. The report row names the file to check.
A line in the file ends with a bare carriage return or with CR CR LF instead of LF or CR LF.
Operational effect
Why it matters
Parsers may merge or split records, so rows can be lost or read wrongly by some apps.
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 |
|---|---|---|
filename | string | The name of the file containing an invalid line ending. |
lineEnding | object | The detected line ending (CR or CRCRLF). |
rowNumber | integer | The 1-based line number containing the first invalid line ending. |
Repair
How to fix it
- 1
Open the reported file at
rowNumberin an editor that shows line endings. - 2
Re-save the file with LF or CR LF line endings, and fix the export step (often a spreadsheet or an older tool) that produced the others.
- 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