A failed Databricks Workflow does not always require a full rerun. This troubleshooting checklist shows how to identify the failing task, distinguish transient errors from configuration problems, use retries and dependencies safely, verify alerts, and recover a production job without creating duplicate or inconsistent outputs.
Overview
Databricks Workflows coordinate tasks such as notebooks, Python scripts, SQL queries, model training, batch inference, and data quality checks. A job failure is therefore an orchestration problem as well as an application problem: the useful diagnosis must explain what failed, why it failed, what downstream work was prevented, and whether a retry is safe.
Start with the run-level view in the Databricks workspace. Open the relevant job, select the failed or active run, and inspect the task graph and task-level details. Workspace navigation and labels can change, so use the current job run, task run, and repair or rerun controls available in your environment. Record the job name, run identifier, task name, attempt number, start and end times, cluster or SQL warehouse, and the first meaningful error message.
Use this basic decision tree:
- Did the task start? If not, check scheduling, permissions, cluster or warehouse availability, task parameters, and dependency conditions.
- Did the task start and then fail? Inspect the task output, driver or executor logs, query details, notebook cell errors, and external service responses.
- Does the error appear temporary? A retry may be appropriate for a transient infrastructure, rate-limit, or network problem.
- Does the error indicate bad input or code? Stop repeated retries, correct the cause, and run a controlled repair or rerun.
- Did downstream tasks run? Confirm dependency behavior and check whether partial outputs need to be removed, quarantined, or marked for reprocessing.
For AI applications, also inspect the boundary between orchestration and the application itself. A failed retrieval step may involve permissions or index availability; a failed inference step may involve endpoint authentication, request limits, malformed prompts, or response parsing. For related deployment checks, see the Databricks Model Serving Deployment Checklist.
Checklist by scenario
Scenario 1: A task fails immediately
- Open the task output and capture the first actionable error, not only the final wrapper message.
- Confirm the task parameters, selected notebook or script path, source branch or revision, and run-as identity.
- Check whether the identity can read source data, write target tables, use compute, and access secrets or external locations.
- Verify that referenced catalogs, schemas, tables, volumes, model endpoints, and storage paths exist in the target environment.
- Review recent changes to code, libraries, cluster policies, SQL warehouses, permissions, or configuration.
Permission failures should be investigated separately from code failures. The Unity Catalog permissions troubleshooting guide can help organize checks for schemas, external locations, and access.
Scenario 2: A task fails after running for a while
- Compare the failure time with driver, executor, query, and external API logs.
- Check for out-of-memory symptoms, skewed data, long-running queries, executor loss, or unexpectedly large input.
- Review timeout settings and determine whether the limit protects the system or merely stops a legitimately long operation.
- Confirm that intermediate files, checkpoints, temporary tables, and output locations are not filling available storage.
- Test the smallest reproducible input before increasing compute or timeout values.
Scenario 3: A transient failure may be safe to retry
Use retries for failures that are likely temporary and for tasks designed to be repeatable. In the task settings, review the maximum retry count, the interval between retries if available, and any timeout or duration limit. A retry is not a substitute for idempotent application design.
Before enabling or increasing retries, answer three questions:
- Can the task write the same logical result more than once without duplication?
- Can a partially completed run be detected and safely replaced?
- Could a retry repeat an external side effect, such as sending a notification, charging an account, or submitting a duplicate request?
For data pipelines, prefer deterministic output paths, merge or overwrite logic designed for reruns, and run-specific staging locations. For AI inference, persist request identifiers or input-batch identifiers where possible so a retry can distinguish new work from already completed work.
Scenario 4: A dependency prevents downstream tasks
Review the task graph rather than rerunning an isolated task immediately. Typical dependency patterns include:
| Dependency symptom | Likely check | Recovery approach |
|---|---|---|
| Downstream task never starts | Upstream task state, dependency condition, and skipped-task behavior | Fix or repair the upstream task, then run only the required downstream branch |
| Several tasks fail together | Shared cluster, warehouse, library, secret, or source system | Resolve the shared dependency before retrying individual tasks |
| One branch succeeds and another fails | Branch-specific parameters, data range, permissions, or endpoint access | Repair the failed branch and validate whether its outputs are complete |
| Task is skipped unexpectedly | Condition task result, trigger logic, or dependency expression | Check the condition with the actual run parameters and expected state |
Scenario 5: A scheduled or production run failed
- Pause or disable overlapping schedules only if another run could process the same data or create conflicting writes.
- Identify the intended input window and compare it with the failed run's parameters.
- Decide whether to repair the failed task, rerun the entire job, or launch a backfill with explicit parameters.
- Validate output tables, checkpoints, model artifacts, and serving-side effects before declaring recovery complete.
- Document the cause, corrective action, run identifier, and any data validation performed.
What to double-check
Retries and timeouts
Retry counts should reflect the failure mode, not a desire to hide alerts. A short retry window may help with an intermittent service, while repeated retries can waste compute and delay notification of a real defect. Set a timeout that reflects normal variation in data volume, then investigate runs that approach the limit. Review these settings after major changes to input size, model latency, query plans, or cluster configuration.
Alerts and notifications
Review job notification settings for failed runs, duration thresholds, and successful completion where those options are available. Send incident notifications to a monitored channel or ownership group rather than relying on one person's inbox. If alerts support task-level and job-level events, use both deliberately: task-level alerts help diagnose, while job-level alerts communicate business impact.
Test the complete alert path during a controlled maintenance window. Confirm that the recipient list is current, the message identifies the job and run, and a notification is not generated for every harmless retry. Also verify that an alert does not imply successful data delivery when only the orchestration layer completed.
Recovery and data integrity
Before rerunning, inspect whether the failed task committed any output. A notebook can fail after writing a table, a batch can partially populate a destination, and an external API can accept a request before the client reports an error. Use staging tables, transaction-aware writes, checkpoints, and validation queries where appropriate. Streaming workloads require special care; review checkpoint behavior before deleting or resetting state. The Structured Streaming checkpoint recovery guide provides a focused reference.
For model-training or registry workflows, check whether an artifact or model version was created before the failure. Confirm its status before starting another training run. The MLflow Model Registry workflow guide is useful when recovery includes promotion or rollback decisions.
Common mistakes
- Retrying without reading the first error: repeated attempts can obscure the original cause and increase cost.
- Increasing compute first: more capacity will not fix an incorrect path, missing permission, invalid parameter, or malformed response.
- Rerunning the whole job by default: a targeted repair is often safer when completed tasks produced valid outputs.
- Ignoring run parameters: a successful rerun over the wrong date, tenant, or environment can be worse than a visible failure.
- Making every task retryable: tasks with external side effects need idempotency or explicit duplicate protection.
- Treating alerts as monitoring: notifications tell you that something happened; they do not validate row counts, freshness, model quality, or response correctness.
- Deleting checkpoints or outputs casually: state removal can cause replay, duplication, or data loss.
When to revisit
Revisit this checklist before seasonal planning cycles, major input-volume changes, new model releases, and production launches. Repeat the review whenever Databricks Workflows changes its job-run interface, task options, notification controls, compute policies, or retry behavior. Also review it after an incident that exposed an unclear owner, missing alert, unsafe rerun, or undocumented dependency.
Make the checklist part of the job's operating record. For each production workflow, keep a short recovery note containing the owner, expected input window, safe rerun method, validation queries, downstream consumers, and escalation path. After every significant failure, update that note with the observed symptom and confirmed fix.
Before closing the next incident, use this sequence: preserve the run details, identify the first failing task, classify the error, stop unsafe retries, verify dependencies and permissions, choose a targeted recovery, validate outputs, and record the lesson. That process makes Databricks job troubleshooting repeatable and keeps AI application pipelines easier to operate as their models, data sources, and services evolve.