- Before this lesson
- Input validation
- You will learn to
- Validate rows with If and Regex
- Skip and count bad rows
- Combine with Try/Catch for missing input
- Sample files
- contacts-check.station.json · error-handling.station.json · contacts.csv
Scenario. Before sending a newsletter or importing contacts somewhere, you want to know which rows are incomplete.
Input and output
- Input:
contacts.csv(synthetic: Name, Email, City, Status). - Output: warnings in Execution & logs and a summary count.
Steps
- Put
contacts.csvinto the practice folder. - Import and run
contacts-check.station.json. - Then combine it with the pattern in
error-handling.station.json: wrap Read contacts in a Try/Catch so a missing file produces one clear message.
Optional improvements
- Write the problem rows to a separate CSV with Create DataTable and Add Row.
- Only check rows whose Status is active.
Activities in this lesson
CSV Operation · For Each Row · Get Key · If Condition · Regex · Continue · Try/Catch · Log
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.