Pipeline orchestration
Model orchestration as dependencies
A directed acyclic graph (DAG) represents activities and the prerequisites that must finish before they run. Fabric pipelines can execute activities such as Copy and Dataflow Gen2 and branch based on outcomes. In the lab, extract, validate, stage, reconcile, commit and refreshModel are a strict success chain. Failure recording is a separate branch; do not connect a report refresh to a mere completion condition. A successful log-writing activity must not turn an upstream failure into an approved publication.
Parameterize a bounded run
Use a typed pipeline parameter businessDay, a correlation runId, and a separately configured connection. For a Fabric string parameter named businessDay, the dynamic expression @pipeline().parameters.businessDay reads its value. Validate the value against the expected date format and allowed window before using it. The Dataflow activity supports invoking Gen2 and passing supported public parameters when configured; the public-parameters article is labeled preview, so check availability and binding behavior before adoption. Use approved connection references, never credential strings. Keep attempt ID distinct from logical day and source version.
Worked example 1 — transient source error
The source is temporarily unavailable on attempt 1 and succeeds on attempt 2. The teaching policy allows three total attempts (initial + two retries), with a bounded delay. Configure retry settings for supported activities, but verify whether a particular condition-based retry feature is preview. If all three attempts fail, record a sanitized failure and skip staging, commit and model refresh. No sales for the new day become visible; the old 12,000-cent prior day stays intact. Do not retry invalid credentials indefinitely; route them to the authorized connection owner.
Worked example 2 — schema drift versus a partial load
The drift.csv file renames RevenueCents to RevenueText. Validation fails before staging because the contract requires the original header. A separate partial-stage scenario writes only A. The stage contains one distinct line and 10,000 cents, whereas the approved control expects three and 24,000. Neither event advances commit. Resolve the incompatible schema with the producer; a transient sink error may permit retry only after clearing or isolating partial candidate output. A failure-handler that runs successfully is not proof that data is complete.
Monitor and preserve lineage
Capture pipeline run ID, activity name, business date, source version, sanitized error code, attempts, accepted/rejected/replay counts, staged total and committed version. Use Monitoring hub to correlate activity status and dataflow refresh history; protect secure inputs and outputs. A successful run state alone does not show all required rows landed. Record lineage from source to destination and model, and collect actual capacity and duration evidence in an authorized environment. A schedule is optional and needs explicit approval; use manual bounded runs during development.
Practice and references
Draw the six-node success chain and a failure branch that never advances publication. Predict statuses for transient recovery, permanent schema failure and partial stage. Run python verify.py from the lab folder. See pipeline overview, dependencies, retries, Dataflow activity, parameters, monitoring and public parameters.