Debug a Workflow
~25 minutes · run one step, preview the data, read the log, trace the inputs
Something in a workflow isn’t right — a step is red, a downstream number looks wrong, or a run stopped partway. This tutorial walks the manual toolkit for finding out why: run a single step in isolation, preview what it produced, read the workflow log, trace where its inputs came from with the dependency audit, and read the error itself. Each tool answers a different question, and together they usually get you to the cause without guessing.
Prefer to have it explained to you? The AI-assisted path does the same investigation conversationally. This tutorial is the manual version — everything here you drive yourself, which is worth doing at least once so you know what the assistant is actually looking at.
The Debugging Loop
Section titled “The Debugging Loop”Most workflow debugging is the same short loop, whichever tool you reach for first:
Prerequisites
Section titled “Prerequisites”- A PlaidCloud workspace with a project and a workflow that has a problem to chase (a red step, a wrong result, or a run that stopped).
- Familiarity with the Visual Workflow Designer — the canvas where you’ll do most of this.
Step 1: Run Just the Broken Step
Section titled “Step 1: Run Just the Broken Step”Don’t re-run the whole workflow to test one change — it’s slow, and it re-does work you already trust. Run the single step you’re investigating.
- Open the workflow in the Visual Workflow Designer.
- Right-click the step you want to test and choose Run Step from the context menu.
- The step runs in isolation, against the data that already exists in its source tables.
That last point matters when you’re debugging: a step reads from its source tables as they are right now. If an upstream step hasn’t run yet, or ran with stale data, running this step alone reflects that — which is exactly what Step 4 helps you catch.
See Running One Step in a Workflow for the full details.
Step 2: Preview What the Step Produced
Section titled “Step 2: Preview What the Step Produced”Once the step has run, look at what it actually wrote before you decide whether it’s correct. The Data Preview drawer shows a step’s output data right on the canvas — the first 100 rows with typed columns, docked at the bottom.
There are three ways in, all landing in the same drawer:
- Hover the step tile — a small browse (table) glyph fades in at the tile’s bottom-right corner. Click it.
- Right-click the step and choose Preview Output Data.
- In the Inspector, click the eye icon on any output card under the step’s Outputs section.
What to check depends on the symptom:
| Symptom | What to look for in the preview |
|---|---|
| Wrong or missing columns | Did the step produce the columns you expected? A join or column-select gone wrong shows up here first. |
| Too few / too many rows | The header shows Showing first N of ~M rows — is the total roughly what it should be? |
| Empty output | The drawer says Table is empty (ran, zero rows) or No data yet — run the step (never ran). |
| Suspicious values | Sort a column to surface nulls or outliers at the top. |
While the drawer is open, clicking any other step retargets the preview to that step’s output — so you can walk down a chain of steps and watch where the data first goes wrong. When you need to filter, slice, or go beyond the first 100 rows, click Open in Table Explorer in the drawer header.
Full details are in Preview Step Data.
Step 3: Read the Workflow Log
Section titled “Step 3: Read the Workflow Log”The preview tells you what the output looks like; the log tells you what happened when the step ran — including the error message if it failed.
As steps run and warnings occur, those events are written to the workflow log, viewable from the Project area under the Log tab. From inside the Visual Workflow Designer, the toolbar’s View Logs button opens this same view already filtered to the workflow you have open.
- Open the Log tab (the project log) — from the toolbar’s View Logs button, or the Log tab in the Project area.
- Use the filter control next to the log messages to narrow to the step and run you care about.
- Open a log entry to read its details — this is where a failed step’s error message lives.
The project-level log shows a more comprehensive view across multiple workflows, if a problem might span more than one. See Viewing Workflow Log.
Reading the error message. Copy the exact text from the log entry — a bad join key, a type mismatch, a missing source table each read differently. The two most common causes when a step errors are mismatched join keys between tables and unexpected null values in computed columns. When the message points at data rather than the step’s configuration, that’s your cue to trace the inputs.
A worked example. Say a transform step turns red. You open the log and the entry reads
column "revenue" does not exist— the source table has anet_revenuecolumn, notrevenue. The one-line fix is to correct the column name in the step’s expression. You run just that step again, and it comes back green. That’s the whole loop in a single pass.
Step 4: Trace the Inputs With the Dependency Audit
Section titled “Step 4: Trace the Inputs With the Dependency Audit”Sometimes a step is configured correctly and still produces wrong data — because it ran against inputs that were populated out of order. When data already exists in tables, a step will run and look correct even though it read stale or not-yet-updated data. This is the failure the log can’t show you, because nothing errored.
The Workflow Dependency Audit exists for exactly this. It analyzes the data and workflow dependencies across an interconnected workflow and identifies steps whose inputs are populated in the wrong order relative to when they’re read.
Use it when:
- A step’s output is wrong but the step itself has no error.
- You’ve reordered or added steps and want to confirm nothing now reads a table before it’s built.
- A workflow “works” on a full run but a single-step run gives different numbers — a classic sign of an ordering dependency.
See View a Dependency Audit for how to open and read the audit.
Step 5: Decide How the Workflow Should Handle the Error
Section titled “Step 5: Decide How the Workflow Should Handle the Error”Once you understand the cause, decide what the workflow should do when this step fails in future. Each step’s error handling is set in the step form, and PlaidCloud offers three levels:
| Behavior | What happens | When to use it |
|---|---|---|
| Stop the workflow | The run halts; an error indicator appears on both the step and the workflow. | The default and most common — workflows generally should run clean. |
| Keep processing | The step is marked with an error, but the workflow treats it as complete and continues. | Steps that can harmlessly error on missing data. Note: the workflow shows a running indicator, not an error one. |
| Trigger a remediation workflow | The current workflow stops and a remediation workflow starts instead. | Automatic notification or correction. Does not fire for steps set to keep processing. |
PlaidCloud can also retry a failed step automatically — a set number of times, with an optional delay from seconds to hours. That’s the right tool when a step reaches a remote system or data source that fails intermittently, rather than one with a real logic bug. See Managing Step Errors.
Step 6: Fix, Re-Run, and Confirm
Section titled “Step 6: Fix, Re-Run, and Confirm”- Make the change your investigation pointed to — fix the join key, add an upstream step, correct a null-producing expression, or reorder steps.
- Run just that step again (Step 1) and preview its output (Step 2). If the drawer was open during the run, it refreshes automatically once the run completes.
- When the step is right, run the workflow end to end and watch the log to confirm the whole pipeline is clean.
For a permanent record of what the workflow does — its steps, functions, and variables — generate the on-demand Workflow Report from the Report icon in the Workflows hierarchy. It reflects the current state of the workflow and is useful documentation once a fix is in. See View Workflow Report.
That’s the whole loop. You’ve run one step in isolation, previewed what it wrote, read the error in the log, traced its inputs with the dependency audit, and re-run to confirm the fix — the same investigation the AI assistant does, only now you can drive it yourself.
Where to Go Next
Section titled “Where to Go Next”- Fix a Workflow With the AI Assistant — the same investigation, done conversationally
- Running One Step in a Workflow — run a single step in isolation
- Preview Step Data — the Data Preview drawer
- Viewing Workflow Log — where run events and errors are recorded
- View a Dependency Audit — catch out-of-order data dependencies
- Managing Step Errors — stop, continue, remediate, and retry
- View Workflow Report — on-demand documentation of the whole workflow