Area: Ingestion
Sub-Area: Fivetran
Applies to: OSS + Cloud
Issue
A Fivetran ingestion source that worked before a DataHub upgrade now fails. No Fivetran metadata is ingested.
You Might Be Asking
- Which keys does a Fivetran recipe need?
- Where do the Fivetran API key and secret go?
- Do old recipe keys still work after an upgrade?
Cause
The recipe does not match the keys the Fivetran source defines. Common mismatches:
- The recipe has neither
fivetran_log_confignorapi_config. Validation then fails with:Fivetran source requires either fivetran_log_config (read logs from the destination warehouse) or api_config (read everything via the Fivetran REST API). At least one must be provided. -
destination_platformis set at the top level. It belongs insidefivetran_log_config, and it needs the matching destination block. A missing block fails with a message such as:If destination platform is 'snowflake', user must provide snowflake destination configuration in the recipe. - Fivetran API credentials are set as top-level keys. They go in the
api_configblock asapi_keyandapi_secret. -
log_source: rest_apiis set withoutapi_config. This fails validation.
Some older keys still work and log a deprecation warning. The source converts them for you:
-
sources_to_databaseis deprecated. Usesources_to_platform_instance. -
max_jobs_per_connector,max_table_lineage_per_connectorandmax_column_lineage_per_connectormoved fromfivetran_log_configto the top level of the config. If both places are set, the top-level values win. -
destination_configwas renamed tosnowflake_destination_config.
Solution
-
Read the run log for validation errors and for
ConfigurationWarningdeprecation messages. They name the key to change. -
Make sure the recipe has
fivetran_log_config,api_config, or both.Read the Fivetran log from the destination warehouse (Snowflake shown).
destination_platformcan besnowflake,bigqueryordatabricks, and the default issnowflake:source: type: fivetran config: fivetran_log_config: destination_platform: snowflake snowflake_destination_config: account_id: <account_id> warehouse: <warehouse> database: <database> log_schema: <log_schema> username: <username> password: <password> role: <role>For BigQuery use
bigquery_destination_config(credential,dataset). For Databricks usedatabricks_destination_config(token,workspace_url,warehouse_id,catalog,log_schema).Or read everything through the Fivetran REST API:
source: type: fivetran config: api_config: api_key: <api_key> api_secret: <api_secret>api_configalso takes optionalbase_url(defaulthttps://api.fivetran.com) andrequest_timeout_sec(default 30). -
log_sourceis optional. If you leave it out, the source picks one. Onlyfivetran_log_configgiveslog_database. Onlyapi_configgivesrest_api. Both givelog_database. -
To set platform instances, use
destination_to_platform_instance(keyed by destination id) andsources_to_platform_instance(keyed by connector id). Each entry can setplatform,platform_instance,envanddatabase. Do not use adestination_platform_instancekey. -
If you filter with
destination_patterns, match on the Fivetran destination ID, such ascanyon_tolerable. You can find it in the Fivetran UI under Destinations, then Overview, then Destination Group ID.connector_patternsmatches on connector name. -
Upgrade to the latest release. The latest CLI release is 1.7.0.20. On DataHub Cloud, you can set the CLI version in the source's Advanced Settings. See UI ingestion. For install and upgrade commands, see the CLI installation guide.
-
If the source still fails, DataHub Cloud customers can contact DataHub Support. Include the DataHub versions before and after the upgrade and the ingestion error log.
Related Documentation
Tags: fivetran, etl, version-compatibility, troubleshooting