Preflight and lineage errors
Troubleshoot preflight failures and missing lineage in the Google Dataflow connector.
Resolve preflight failures and missing lineage errors in the Google Dataflow connector.
Permission denied on preflight
Preflight failed: caller does not have permission
Cause
The service account is missing the roles/datalineage.viewer role on one or more of the configured GCP projects.
Solution
- Open IAM & Admin in the Google Cloud console for each project.
- Find the service account used by the connector.
- Confirm it has the Data Lineage Viewer (
roles/datalineage.viewer) role. - If missing, add the role and re-run the workflow.
Data Lineage API not enabled
Preflight failed: API datalineage.googleapis.com is not enabled
Cause
The Data Lineage API isn't enabled on the project.
Solution
Enable datalineage.googleapis.com on every project you want Atlan to read lineage from:
- Google Cloud console
- gcloud CLI
APIs & Services → Enable APIs and services → search for Data Lineage API → Enable.
gcloud services enable datalineage.googleapis.com --project=<project_id>
Job appears without lineage edges
No lineage events found for job
Cause
One of the following:
- The job's source or sink isn't supported by the Data Lineage API (for example, Apache Iceberg writes).
- Lineage records haven't propagated yet—Google Cloud can take a few minutes after a job run completes.
Solution
- Check that the job's sources and sinks are in the supported list: Pub/Sub, Cloud Storage, Bigtable, Spanner, Apache Kafka, JDBC.
- If the sink is unsupported, lineage edges won't appear—this is a Google Cloud limitation.
- If the sink is supported, wait a few minutes and re-run the workflow.
No runs found
No Dataflow runs found in lookback window
Cause
One of the following:
- The job was launched without the
enable_lineage=trueservice option. - The job ran before the connector's lookback window.
Solution
-
Confirm
enable_lineage=trueis set in the job launch command:--dataflowServiceOptions=enable_lineage=true # Java--dataflow_service_options=enable_lineage=true # Python -
For template-based jobs:
gcloud dataflow jobs run <job> ... \--additional-experiments=enable_lineage=true -
Re-run the job with the flag enabled, then re-run the workflow.
See also
- Set up Google Dataflow: Review API setup, service account configuration, and connector settings.
- What does Atlan crawl from Google Dataflow?: Supported sources, sinks, and metadata.
Need help
If you need assistance after trying these steps, contact Atlan support: Submit a request.