ERRORGTFS Schedule notice

A file uses an unsupported line ending

invalid_line_ending
Severity
ERROR
Files to check
See report
Report fields
3
Documentation
Curated

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 fieldTypeMeaning
filenamestringThe name of the file containing an invalid line ending.
lineEndingobjectThe detected line ending (CR or CRCRLF).
rowNumberintegerThe 1-based line number containing the first invalid line ending.

Repair

How to fix it

  1. 1

    Open the reported file at rowNumber in an editor that shows line endings.

  2. 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.

  3. 3
    Check 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

References