Start building

Files, storage and batch

Excel receipts → subprocess reconciliation → CSV + table

End-to-end native file processing with saved, revision-pinned subprocesses. No AI calls or external services required in gallery simulation. Local qualification additionally exercises approved real temporary files.

  • Excel → CSV
  • via Files
  • Advanced
  • 12 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processExcel receipts → reconciliation subprocess → CSV + Excel table11 activities

Scroll sideways to see the whole flow.

Flow diagram of Excel receipts → reconciliation subprocess → CSV + Excel table11 activities and 10 transitions: Start, Read inbound workbook bytes, Read Receipts sheet, preserving cell types, Skip exactly the declared header row, Reconcile receipts with a pinned subprocess, Render full reconciliation CSV, Write Excel table in standard mode, Read generated table metadata and values, Create reconciliation CSV, Create reconciliation workbook, Return verified result.StartstartRead inbound workbookbytesfile.readRead Receipts sheet,preserving cell typesxlsx.read_workbook1Skip exactly thedeclared header rowdata.mapperReconcile receiptswith a pinned…foreachRender fullreconciliation CSVcsv.renderWrite Excel table instandard modexlsx.write_workbookRead generated tablemetadata and valuesxlsx.read_workbook3Create reconciliationCSVfile.writeCreate reconciliationworkbookfile.writeReturn verified resultend
List the 11 activities and 10 transitions

Activities

  1. Start start
  2. Read inbound workbook bytes file.read
  3. Read Receipts sheet, preserving cell types xlsx.read_workbook
  4. Skip exactly the declared header row data.mapper
  5. Reconcile receipts with a pinned subprocess foreach
  6. Render full reconciliation CSV csv.render
  7. Write Excel table in standard mode xlsx.write_workbook
  8. Read generated table metadata and values xlsx.read_workbook
  9. Create reconciliation CSV file.write
  10. Create reconciliation workbook file.write
  11. Return verified result end

Transitions

  • Start → Read inbound workbook bytes (on success)
  • Read inbound workbook bytes → Read Receipts sheet, preserving cell types (on success)
  • Read Receipts sheet, preserving cell types → Skip exactly the declared header row (on success)
  • Skip exactly the declared header row → Reconcile receipts with a pinned subprocess (on success)
  • Reconcile receipts with a pinned subprocess → Render full reconciliation CSV (on success)
  • Render full reconciliation CSV → Write Excel table in standard mode (on success)
  • Write Excel table in standard mode → Read generated table metadata and values (on success)
  • Read generated table metadata and values → Create reconciliation CSV (on success)
  • Create reconciliation CSV → Create reconciliation workbook (on success)
  • Create reconciliation workbook → Return verified result (on success)
SubprocessReconcile one receipt · subprocess3 activities

Scroll sideways to see the whole flow.

Flow diagram of Reconcile one receipt · subprocess3 activities and 2 transitions: Start, Compare exact integer cents, classify differences, Return verified result.StartstartCompare exact integercents, classify…data.mapper2Return verified resultend
List the 3 activities and 2 transitions

Activities

  1. Start start
  2. Compare exact integer cents, classify differences data.mapper
  3. Return verified result end

Transitions

  • Start → Compare exact integer cents, classify differences (on success)
  • Compare exact integer cents, classify differences → Return verified result (on success)

Walkthrough

  1. Read ExcelLoad a named sheet from an integrity-checked XLSX envelope. The sample is synthetic; amounts are integer cents.
  2. Reconcile rowsCall one pinned subprocess per receipt and return matched, short or overpaid.
  3. Publish verified outputWrite a standard-mode Excel table, read its metadata back, then publish both files.

What you will practise

  • Read typed worksheet rows and named Excel table metadata.
  • Reconcile integer minor units inside an isolated subprocess.
  • Use the standard XLSX writer for tables and cell-level features.
  • Only explicitly authored formulas are formulas; supplied strings remain literal.

Sample cases

2 cases with 7 assertions, run with python -m server.integration examples --all in simulation.

Four invoices, three exceptions and a read-back verified table

Passed

Four invoices, three exceptions and a read-back verified table — deterministic native engine; external file operations use fixtures in the gallery.

Expected result Four invoices, three exceptions and a read-back verified table. Each expected outcome is asserted.

5/5 assertions

  • status
  • /exceptions
  • /rows/0/status
  • /rows/3/status
  • /table

This sample run only; not a production certification.

Invalid XLSX container prevents all downstream work

Expected failure verified

Invalid XLSX container prevents all downstream work — deterministic native engine; external file operations use fixtures in the gallery.

Expected result Invalid XLSX container prevents all downstream work. Each expected outcome is asserted.

2/2 assertions

  • status
  • step_count

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
  • openpyxl for Excel workbooks needed in every run, simulation included
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • pipeline_files file · file.read, file.write
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
cd488e044883baa451f67c4945d1ae43153aeb1218c5c068ddbee4f13d24dd80
Closure SHA-256
1915c415202bb930089a19a51e5a46edd22d4c353a8ac932c4b310c461d06829
Runtime
1.27.0
Results
2/2 cases, 7/7 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/excel_reconciliation_lab.json
  • server/integration/templates/fp_excel_to_csv.json
  • server/integration/templates/fp_reconcile_receipt.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example excel_reconciliation_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check