Menu
Data & tables / Frictionless Framework

Catch a shifted CSV row before it reaches a report

Use a deliberately uneven file to learn what a structural validation error tells you and what it leaves unresolved.

What stands out in Frictionless Framework

A missing delimiter can change the meaning of every cell to its right. Frictionless gives the person handing off a dataset a machine-readable way to check structure. It is particularly helpful when a file looks plausible in a narrow preview because the missing value sits well beyond the first column.

Walkthrough

  1. Download delivery.csv, an example containing a deliberate mistake. Open it in a plain-text viewer and note the four header fields. The final record contains only three cells. Save the original so you can reproduce the failure.
  2. With the Frictionless command-line tool installed, run frictionless validate delivery.csv. Look for the row-level complaint about the missing cell. Match the row contents to the file, allowing for the header when comparing displayed row numbers.
  3. Suppose the dispatch slip confirms the third field should be Albany and the fourth field should be sent. In a working copy change the final line to P03,West,Albany,sent. Rerun validation on the corrected filename and compare the error report with the original.
  4. Now deliberately replace Albany with a plausible but wrong city. The file still has four cells in every row. A structural check alone cannot verify the destination against the dispatch slip. Preserve the distinction in your handoff note.

Field tip

A trailing comma represents an empty final cell. It can resolve a field-count error without supplying the missing fact. Treat blanks as a separate policy decision and use an explicit schema when a value is mandatory.

Where it falls short

Inferred types and column structure describe the sample the tool sees. For a recurring exchange, agree on the schema with the recipient and validate against that specification. Otherwise both parties can accept different interpretations of a technically readable file.

Try it yourself

Leave delivery.csv as the failing fixture and save the repaired copy as delivery-fixed.csv. A colleague can run the same command against both and see whether a changed validation setup still catches the gap. This pair is more useful than a screenshot of a single successful run.

Download practice file · CSV ↓

Product documentation

Frictionless Framework official reference ↗

Where to go next