Use Pulsar Realtime Trigger to push events into MySQL
Stream Apache Pulsar messages straight into MySQL in real time, one row per event.
Audit financial Excel spreadsheets for data drift, extract multi-tab workbooks via streaming, verify round-trip fidelity, and alert Slack on corrupted records.
Enterprise finance, accounting, and revenue operations (FP&A, SOX compliance reporting, commission reconciliation, and budgeting) rely overwhelmingly on Microsoft Excel (.xlsx) workbooks to exchange critical business metrics. Despite their ubiquity, spreadsheets are highly error-prone: unannounced column renaming, deleted tabs, formula calculation errors, empty rows, and silent formatting drift frequently corrupt downstream data warehouses and financial ledgers.
This sentinel workflow automates the validation and integrity gating of enterprise Excel spreadsheets. Using Kestra native Excel serialization tasks (ExcelToIon and IonToExcel), the workflow parses multi-sheet workbooks in streaming mode, enforces sheet presence and row threshold validation, performs bidirectional round-trip compilation to guarantee zero attribute loss, classifies spreadsheet health into tri-state operational tiers via Pebble logic, dispatches targeted Slack alerts, isolates corrupted files to quarantine, and records an immutable audit ledger.
Schedule trigger awakens the workflow periodically to inspect staged financial workbooks.Q4_Revenue and Cost_Center_Expenses) are staged into internal storage.io.kestra.plugin.serdes.excel.IonToExcel synthesizes a multi-sheet .xlsx workbook mapping each dataset to its designated sheet tab.io.kestra.plugin.serdes.excel.ExcelToIon reads the workbook with POI streaming optimization, parses named sheets, extracts structured records to individual Amazon Ion streams, and calculates total converted row counts.io.kestra.plugin.serdes.excel.IonToExcel re-compiles the parsed streams into a verification workbook, proving 100% bidirectional serialization fidelity.Labels execution task evaluates extracted record volumes and sheet presence against required thresholds, assigning an operational status tier (COMPLIANT_SPREADSHEET, WARNING_THRESHOLD_DEFICIT, or CRITICAL_WORKBOOK_CORRUPTION).Switch flow-control task directs execution: corrupted workbooks trigger immediate Slack incident alerts and payload quarantine, while compliant sheets trigger confirmation of readiness for downstream financial ledger loading.Log task outputs structured audit telemetry recording sheet URIs, converted record volumes, and execution timestamps.ExcelToIon, IonToExcel) eliminate external container dependencies and Python memory leaks on large sheets.SLACK_WEBHOOK_URL: Incoming webhook URL for posting financial spreadsheet integrity alerts to the operations channel (required).SLACK_WEBHOOK_URL secret in your Kestra namespace.simulate_corrupted_workbook: false) to verify multi-tab compilation, streaming extraction, round-trip re-compilation, and audit logging.simulate_corrupted_workbook: true to verify that the sentinel catches corrupted workbooks, creates quarantine artifacts, and dispatches Slack incident alerts.COMPLIANT_SPREADSHEET branch to load verified sheets into data warehouse tables.deal_id, amount, currency).CRITICAL_WORKBOOK_CORRUPTION branch for critical month-end close accounting deadlines.