diagnosing-failed-warehouse-syncs
Diagnose why a data warehouse sync is failing and recommend the right recovery action. Use when the user asks "why isn't my Stripe/Postgres/Hubspot sync working?", "this table has been stuck for hours", "the data in the warehouse looks wrong", or wants to troubleshoot a specific source or schema. Covers source-level vs schema-level failures, stuck Running states, credential and schema-drift errors, incremental-field misconfig, CDC prerequisite failures, and the cancel / reload / resync / delete-data recovery actions.
What this skill does
# Diagnosing failed data warehouse syncs Work top-down when a data warehouse source or table is failing, stuck, or producing bad data: source → schema → recovery action. Do **not** jump straight to "resync from scratch" — that discards synced data and restarts from zero, which is rarely the right first step. ## When to use this skill - The user reports a specific sync is failing (e.g. "my Stripe source is red") - A table has been in `Running` state far longer than expected - Data in a warehouse table is stale, missing rows, or looks corrupt - Latest rows aren't appearing despite the schema being marked `Completed` - The user is choosing between cancel / reload / resync / delete-data and isn't sure which - Another skill — typically `auditing-warehouse-data-health` — has surfaced a failing source or schema and the user wants to dig into it Both entry points (user-reported and audit-handoff) use the same workflow; the audit just means you already know which item to diagnose and can skip Step 1's discovery search. ## Available tools | Tool | Purpose | | ------------------------------------------------------ | -------------------------------------------------------------------------- | | `external-data-sources-list` | List all sources with connection status and latest error | | `external-data-sources-retrieve` | Full details for one source including all its schemas | | `external-data-schemas-list` | All table schemas across all sources, with per-table status + latest_error | | `external-data-schemas-retrieve` | Full details for one schema including sync_type_config | | `external-data-schemas-cancel` | Cancel a sync currently in `Running` state | | `external-data-schemas-reload` | Trigger a sync using the configured sync method (respects incremental) | | `external-data-schemas-resync` | Full resync — wipes synced data and restarts. Destructive | | `external-data-schemas-delete-data` | Delete the synced table but keep the schema entry | | `external-data-schemas-partial-update` | Change sync_type / incremental_field / cdc_table_mode | | `external-data-sources-partial-update` | Update a source's credentials (`job_inputs`) after rotation | | `external-data-sources-reload` | Retrigger syncs for every enabled schema on a source | | `external-data-sources-refresh-schemas` | Re-fetch the source's table list to pick up new tables | | `external-data-sources-check-cdc-prerequisites-create` | Verify Postgres CDC setup for a source | | `external-data-schemas-incremental-fields-create` | Refresh candidate incremental fields when the source schema has changed | | `external-data-sources-webhook-info-retrieve` | Check webhook registration state and external service status | | `external-data-sources-create-webhook-create` | Re-register a webhook that was lost or never registered | | `external-data-sources-update-webhook-inputs-create` | Update the signing secret after rotation on the source side | | `external-data-sources-delete-webhook-create` | Remove a broken webhook before re-registering | ## Workflow ### Step 1 — Locate the failing item If the user named a source, go straight to `external-data-sources-retrieve`. Otherwise start with `external-data-sources-list` and `external-data-schemas-list` to find what's red. Two kinds of failure: - **Source-level** (`ExternalDataSource.status = "Error"`): the connection itself is broken — credentials expired, host unreachable, account disabled. Affects every table. - **Schema-level** — the source connects fine but one or more tables are failing. In the serialized API response from `external-data-schemas-list`, look for `status` values `"Failed"`, `"Billing limits"`, or `"Billing limits too low"`. (The underlying model enum values are `BillingLimitReached` and `BillingLimitTooLow`, but the serializer rewrites them — match on both the human-readable and enum forms to be safe.) A source can look `Completed` at the top level while one of its schemas is `Failed` — always check both. ### Step 2 — Classify the schema status From `external-data-schemas-list`, each schema has a `status`: | Status | Meaning | Usually means | | ------------------------------------------------------------------- | ------------------------------------------ | -------------------------------------- | | `Running` | Sync currently executing | Normal, unless stuck for hours | | `Completed` | Last sync finished successfully | Healthy | | `Failed` | Last sync errored — see `latest_error` | Needs diagnosis | | `Paused` | User disabled sync (`should_sync = false`) | Intentional | | `Billing limits` (serializer) / `BillingLimitReached` (enum) | Team hit its warehouse row quota | Billing issue, not a technical failure | | `Billing limits too low` (serializer) / `BillingLimitTooLow` (enum) | Team has insufficient credit | Billing issue | Always check `last_synced_at` alongside status. A schema in `Running` with `last_synced_at` from 12 hours ago is almost certainly stuck, even though the status isn't `Failed`. ### Step 3 — Interpret `latest_error` Map the `latest_error` string to a root cause. Common patterns: | Error substring | Root cause | Fix | | ------------------------------------------------------------ | ---------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `authentication failed`, `401`, `403`, `invalid credentials` | Credentials expired or rotated | User rotates creds, then `external-data-sources-partial-update` with new `job_inputs` | | `Could not establish session to SSH gateway` | SSH tunnel misconfigured or remote host down | User checks SSH host/key/bastion | | `Primary key required for incremental syncs` | Table has no PK and sync_type is `incremental`/`cdc` | Either add PK in source, or switch schema to `full_refresh` | | `primary keys for this table are not unique` | Declared PK columns aren't actually unique | Pick different PK columns via `partial-update` | | `Integration matching query does not exist` | Source's saved integration was deleted | Recreate the source | | `column "X" does not exist`, `does not have a column named` | Schema drift — incremental field or tracked column re
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.