Area: Ingestion Issues
Sub-Area: Looker Connector, Embed URL Validation
Applies to: OSS + Cloud
Issue
Looker ingestion fails for dashboards whose ID contains a space, for example a LookML dashboard with an ID like model::Dashboard Name With Spaces. The run report shows this error:
Invalid URL syntax for 'renderUrl': https://<your-looker-host>/embed/dashboards/<model>::<Dashboard Name With Spaces>
The problem starts after an upgrade to DataHub Cloud v2.2.0 or later, or to self-hosted DataHub v1.7.0.1 or later. Nothing changed in Looker.
You Might Be Asking
- Why did Looker ingestion start failing after a DataHub upgrade when nothing changed in Looker?
- Is the
::separator in LookML dashboard IDs the problem? - Why are dashboards without spaces in their IDs also missing?
- Can I ingest every dashboard, including the ones with spaces, without a deny pattern?
Cause
The Looker connector builds an embed preview URL for each dashboard as <external_base_url>/embed/dashboards/<dashboard id>. It puts the dashboard ID into the URL as is, without percent-encoding. A space in the ID ends up as a raw space in the URL.
DataHub Cloud v2.2.0 and self-hosted DataHub v1.7.0.1 added a server-side check on the embed renderUrl field. The check parses the URL before it looks at the scheme. A raw space is not valid URL syntax, so the server rejects the record with the error above. Earlier server versions did not check this field, so the same dashboards ingested fine.
The :: separator is not the problem. A URL like /embed/dashboards/model::name parses without error. Only the space fails.
Other assets go missing because of batching. The datahub-rest sink sends records to the server in batches (max_per_batch, default 100). When one record in a batch fails validation, the server rejects the whole batch. The other assets in that batch are not written either. The run report lists them as failures.
Solution
Don't add a deny pattern like .*::.*. Every LookML dashboard ID contains ::, so that pattern excludes all LookML dashboards, not just the broken ones. Use one of the two options below. Both keys are listed in the Looker source Config Details.
Option 1: Turn off embed URL extraction
Set extract_embed_urls: false. The connector then doesn't build embed URLs at all, so the server has nothing to reject. All dashboards ingest, including the ones with spaces in their IDs. The tradeoff is that DataHub stops creating or updating embed previews for Looker dashboards and Looks. Previews already stored in DataHub stay as they are.
If you added a dashboard_pattern deny rule as a workaround, remove it.
source:
type: looker
config:
base_url: "https://<your-looker-host>"
# ... other config ...
extract_embed_urls: false
Option 2: Deny only the affected dashboards
If you want to keep embed previews, deny only the dashboard IDs that contain spaces. dashboard_pattern takes regular expressions matched against the dashboard ID. Escape any regex special characters in the ID, such as (, ), . or +.
source:
type: looker
config:
base_url: "https://<your-looker-host>"
# ... other config ...
dashboard_pattern:
deny:
- "^model_name::Dashboard Name With Spaces$"
- "^other_model::Another Broken Dashboard$"
Replace the examples with your real dashboard IDs. All other dashboards, including LookML dashboards with :: and no spaces, ingest normally. The denied dashboards are not ingested.
Stateful ingestion and deny patterns
If stateful_ingestion.enabled is true, the connector soft-deletes assets that were in the last successful run but are missing from the current run. See Stateful Ingestion. This affects deny patterns as follows:
- Adding a deny pattern makes the next run soft-delete the dashboards it excludes. With a broad pattern like
.*::.*, that is every LookML dashboard. One exception: if more thanfail_safe_thresholdpercent (default 75) of the previous run's entities are missing, the run skips stale entity removal and reports a failure instead. - Removing or narrowing the deny pattern brings those dashboards back. The next run ingests them again and marks them as not removed.
- If the DataHub GC source runs on your instance, it hard-deletes soft-deleted entities after
retention_days, which defaults to 10 days. A hard-deleted dashboard comes back on the next run, but anything you added to it in DataHub (tags, terms, owners, documentation) is gone. Undo an over-broad deny pattern quickly.
Fix status
The latest connector release still builds the dashboard embed URL without encoding the ID. Use Option 1 or Option 2 until a release fixes it, and upgrade to the latest release when one does.