Databricks lakeflow connect saas

From databricks/databricks-agent-skills · View interactive version

Databricks lakeflow connect saas is an AI agent skill from the GitHub repository databricks/databricks-agent-skills. Lakeflow Connect ingestion from SaaS apps (Salesforce, Workday, ServiceNow, HubSpot, SharePoint, Google Drive, OneDrive, Jira, ads, audit logs, 70+ more) and Kafka or RabbitMQ into Unity Catalog. Use when finding a connector, creating its connection and pipeline, scheduling or debugging it.

How to use this skill

Skill file

Lakeflow Connect: SaaS connectors

FIRST: use the parent databricks-core skill for CLI install, authentication, and profile selection.

| Source | Skill |

|---|---|

| A SaaS application, a RabbitMQ queue, or a Kafka topic with the managed connector (Beta) | this skill |

| A Kafka topic whose messages need more than the key and value formats the Kafka pipeline page lists | read_kafka in databricks-pipelines, or databricks-spark-structured-streaming |

| A database (SQL Server, PostgreSQL, MySQL, Oracle, query-based) | databricks-lakeflow-connect |

| An app or device that pushes events | databricks-zerobus-ingest |

| Files on cloud object storage | Auto Loader, databricks-pipelines |

| Files on an SFTP server | SFTP file connector on Auto Loader: file-connectors.md |

| A stream with no managed connector (Kinesis, Pub/Sub, Pulsar) | databricks-spark-structured-streaming |

| A source with no managed connector | a custom connector (Beta) or a community connector |

Find the connector's pages

Connectors and options change faster than this skill: read the connector's docs pages instead of answering from memory. When a page and this skill disagree, the page wins.

Workflow

Ask for every missing input in one message (connector, objects, destination catalog and schema, schedule), list what you'll create, and wait for one "yes".

  1. Previews toggle. When the page's Beta note mentions the Previews page, a workspace admin turns that preview on first. Beta has no production SLA: say so.
  2. Source setup. Follow -source-setup on the SaaS side (app registration, API user, scopes). Connectors with several auth methods have one setup page each.
  3. Connection. Created in Catalog Explorer (the -connection page has the exact path), often with a browser sign-in. Ask the user to create it from the -connection page and give you its name; don't guess connection_type or option names for databricks connections create. Grants: databricks-unity-catalog.
  4. Pipeline. Copy the object shape from the -pipeline page examples. source_schema is usually default, the account ID for ads, objects for Salesforce; never a placeholder.
  5. Run and schedule. Start one update and check it, then schedule a Jobs pipeline_task (databricks-pipelines, databricks-jobs). Anything kept: a bundle pipelines resource with this ingestion_definition plus a job with a pipeline_task (databricks-dabs). Kafka and RabbitMQ run continuously, with no job.
{
  "name": "jira_ingest",
  "catalog": "main",
  "schema": "jira_raw",
  "ingestion_definition": {
    "connection_name": "<jira-connection>",
    "objects": [
      {"table": {"source_schema": "default", "source_table": "issues",
                 "destination_catalog": "main", "destination_schema": "jira_raw"}}
    ]
  }
}

Important

Troubleshooting

Read the pipeline's event log (databricks-pipelines), then the connector's -troubleshoot page.

| Symptom | Cause | Fix |

|---|---|---|

| DUPLICATE_KEY_VIOLATION | The key the source reports isn't unique per row (NetSuite's line-level tables report transactionid) | Set table_configuration.primary_keys to a key that is unique per row, as the connector's -pipeline page names it (NetSuite: transactionid and line), then full refresh that table (ask first) |

| A working connection fails auth | Refresh token revoked or expired | Reauthorize the connection in Catalog Explorer |

| Create fails or the connector isn't found | Previews toggle off, or channel: PREVIEW missing | Check the page's Beta note and examples |

| Every update re-reads a whole table | No cursor (entity tables, formula fields, report snapshots) | Expected; Salesforce formula fields can be ingested incrementally (Beta) in a new pipeline, API only: Ingest formula fields incrementally |

| Too many tables | Per-pipeline cap on -limits (250 where stated, NetSuite 200, Outlook 1) | Split the pipeline |

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.