Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 4/Practical data-processing project
Level 4 · Working with data

Practical data-processing project

Combine CSV, filtering, calculations, validation and file output into one dependable workflow that you can run every week.

Intermediate≈ 40 min (estimate)Windows, macOSWorkflow engine-tested
Before this lesson
Working with SQLite
You will learn to
  • Plan a data workflow before building it
  • Validate input before using it
  • Produce outputs a colleague can read
Sample files
csv-sales-summary.station.json · contacts-check.station.json · sales.csv · contacts.csv

The scenario

Every Monday you take last week's sales export, keep one region, total it and send a short report. This project builds that workflow from the samples.

1. Plan on paper

  • Input: sales.csv in the practice folder.
  • Rules: one region; value = units × unit price.
  • Output: a filtered CSV and a short text report.
  • Exceptions: the file is missing; a row has an empty or non-numeric value.

2. Start from the sample

Import csv-sales-summary.station.json and run it once to see it work.

3. Add validation

Borrow the pattern from contacts-check.station.json: inside the row loop, check a value before using it, log a clear warning and Continue with the next row.

  1. After Units of this sale, add an If Condition: Variable units, Operator is empty.
  2. In Then: Log Row {{i}} has no units (level warning), then Continue.

4. Protect the risky step

Wrap Read the sales in a Try/Catch with On Error stop and a Save Error To variable, and in Catch write a clear line to the report file before the workflow stops. See Try/Catch and error handling.

5. Make the output readable

Add the date to the report with Now and Format Date, and the number of rows processed.

Activities in this lesson

CSV Operation · Filter Table · For Each Row · Get Key · If Condition · Math · Write File · Try/Catch

Saved only in this browser.

Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.