Area: Ingestion Issues
Sub-Area: Transformers / Container Ownership
Applies to: OSS + Cloud
Issue
You run Looker ingestion with the pattern_add_dataset_ownership (or pattern_add_ownership) transformer and is_container: true. Extraction finishes and most records are written. The workunits named txform-<container id>-ownership fail at the sink with an HTTP 400 error.
You see errors like these in the run log:
MCP object <id> has size <bytes> that exceeds the max payload size of 15728640, so this metadata will likely fail to be emitted.Unable to emit metadata to DataHub GMS: Cannot parse request entity- a failure with
status: 400on a workunittxform-<container id>-ownership
You Might Be Asking
- Why do datasets and dashboards ingest fine, but container ownership fails?
- Is this a network or TCP keepalive problem?
- Can other sources with
is_container: truehit the same error? - Which CLI version fixes it?
- Do I need to rebuild my Remote Executor image to get the fix?
Cause
With is_container: true, the ownership transformer also adds owners to the containers (such as Looker folders and models) in each asset's browse path. At the end of the run it collects the owners of every child asset for each container and writes them in one ownership patch per container.
Older CLI versions did not remove duplicates from that list. Each child asset added its own copy of the same owner, so the patch held one identical "add owner" operation per child. For a container with many child assets, the patch grows past the 15 MB request limit. The CLI logs the size warning above, sends the request, and GMS rejects it with 400 Cannot parse request entity.
This is not a network problem. The 400 response comes from GMS rejecting the request body. A network failure does not return an HTTP 4xx response.
Any source can hit this when it uses is_container: true on the ownership transformer and a container has enough child assets. Looker hits it most because large folders hold many dashboards and charts.
The domain transformers (pattern_add_dataset_domain, pattern_add_domain) are not affected. They remove duplicate domains before they write each container's domains.
Solution
Option 1: Upgrade the DataHub CLI (recommended)
Current CLI releases remove duplicate owners before they build the container patch, so each owner appears once. Upgrade to the latest acryl-datahub release. Version 1.7.0.20 includes the fix.
pip install --upgrade acryl-datahub
If you run ingestion from the DataHub UI, first check which CLI the run used. The run log shows it on a line that starts with DataHub CLI version:. Then open the ingestion source, go to Advanced, and check CLI Version (UI ingestion guide):
- Empty (the default): your DataHub server picks the CLI version from its own configuration. That default follows the server, not PyPI, so it is not always the newest release. If the run log shows a version older than 1.7.0.20, set CLI Version to
latest. -
latest: the run installs the newestacryl-datahubrelease. - A specific version: change it to 1.7.0.20 or later.
-
bundled(Remote Executor only): the run uses the CLI built into your executor image. Upgrade the Remote Executor to a current release, or set CLI Version tolatest.
On a Remote Executor, any CLI Version value other than bundled makes the executor install that CLI in a new virtual environment at run time. You don't need to rebuild the executor image to get the fix. A locked executor image can't install packages at run time, so it needs bundled and a current executor image. See Bundling additional connectors.
Then re-run the ingestion and confirm no txform-*-ownership workunits fail.
Option 2: Turn off container ownership (no upgrade needed)
Set is_container: false on the ownership transformer (Pattern Add Dataset ownership). The transformer then stops adding owners to containers. Datasets, dashboards and charts still get their owners. transformers goes at the top level of the recipe, next to source.
source:
type: looker
config:
# your existing Looker connection config
transformers:
- type: "pattern_add_dataset_ownership"
config:
is_container: false
owner_pattern:
rules:
".*": ["urn:li:corpuser:<your-owner>"]
ownership_type: "TECHNICAL_OWNER"
pattern_add_dataset_ownership is deprecated. Its replacement is pattern_add_ownership, which takes the same owner_pattern, ownership_type and is_container options and also handles container entities directly. See Pattern Add Ownership.