CSV Processing Pipeline
Summary
Wait for a complete set of files, read them into caches, combine and sort their rows, and write one controlled output file.
Files Used in This Example
Prerequisites
- Read/write permission for the input and output directories.
- A file-name pattern, minimum expected file count, and earliest acceptable write time.
Step 1: Watch for relevant filesystem changes
Use a directory watch as the trigger for file discovery rather than polling continuously.
Step 2: Find files only after the trigger changes
Drive the discovery formula from the watch cell and filter by pattern and time.
Step 3: Read and transform the ready files
Read each path, then append and sort the cached results under a descriptive key.
Step 4: Gate the write on readiness
Do not create the output until the required input set exists.
Result
The output is written only after the readiness condition succeeds, and large intermediate data can stay in add-in memory instead of expanding the workbook.
What’s Happening
What’s happening here?
U.WATCH_FILES supplies an event-driven trigger; the readiness cell is the gate; cache keys keep intermediate datasets reusable and auditable.