Area: Product Issues
Sub-Area: Access Policies / Ingestion Page Permissions
Applies to: Cloud
Issue
The Data Sources (ingestion) page does not list your ingestion sources. It shows this error:
Failed to load ingestion sources! An unexpected error occurred.
Ingestion itself still runs. The problem is an access policy whose DOMAIN filter holds a plain text value, such as a domain display name, instead of a domain URN like urn:li:domain:<id>.
You Might Be Asking
- Why does the Data Sources page show an error when nothing changed with ingestion?
- Why does a policy problem break the ingestion source list?
- How do I find the policy that causes it and fix it?
- Is this an outage or a configuration problem?
Cause
This is a configuration problem, not an outage.
On DataHub Cloud, the ingestion source list always applies your access policies as search filters. For each policy that applies to the signed-in user, DataHub reads every DOMAIN filter value as a URN. A value like Finance is not a URN, so the search fails. The UI then shows the generic error above. It gives no hint that a policy is the cause.
A policy causes this only when all of these are true:
- The policy is active.
- It is a Metadata policy.
- It grants a privilege that lets users see or change assets: View Entity Page, View Entity, Edit Entity, Delete, or Get Entity + Relationships API.
- It applies to the signed-in user. Users the policy does not cover can still load the page. A policy for all users breaks the page for everyone.
The policy editor in the UI saves domain URNs when you pick a domain from the list. Policy writes through the API do not check that domain values are URNs. Policies created by a script or another tool can store a display name.
Solution
You need the Manage Policies privilege for these steps.
- Find the policy. Open the GraphQL explorer at
https://<your-instance>.acryl.io/api/graphiqland run this query. It returns every policy field, so you can also use the output in step 4.
query {
listPolicies(input: { start: 0, count: 500, query: "" }) {
total
policies {
urn
name
description
type
state
privileges
actors {
users
groups
roles
allUsers
allGroups
resourceOwners
resourceOwnersTypes
}
resources {
type
resources
allResources
filter {
criteria {
field
condition
values {
value
}
structuredPropertyValues {
propertyUrn
values
}
}
}
privilegeConstraints {
criteria {
field
condition
values {
value
}
structuredPropertyValues {
propertyUrn
values
}
}
}
}
}
}
}
If total is more than 500, run it again with a higher start. Look for an active policy with a criterion where field is DOMAIN and a value does not start with urn:li:domain:. Policy filters are described in Policies: Domain-Based Policy Targeting.
-
Unblock the page right away. Go to Settings, then Permissions, then the Policies tab. Open the menu on the policy's row and select Deactivate. Inactive policies are not applied, so the Data Sources page loads again.
-
Get the real domain URN. Don't build it from the domain name. When you create a domain in the UI without a custom id, DataHub generates the id, so the URN does not match the name. A guessed URN such as
urn:li:domain:financelets the page load, but the policy then matches nothing. Open the domain in DataHub, open the Share menu and select Copy URN. See Domains. -
Fix the policy. Pick one:
- Use the UI. This is the safest option. In the Policies tab, select Edit on the policy. In the domain field, remove the value that is not a domain and select the right domain from the list. Save, then select Activate.
- Use GraphQL. Call
updatePolicy(urn, input). This mutation replaces the policy's users, groups, owner settings and all ofresourceswith what you send. Anything you leave out is removed from the policy. Build the input from the step 1 output for that policy. Copytype,name,state,privilegesanddescription. Copyactorswithusers,groups,allUsers,allGroups,resourceOwnersandresourceOwnersTypes(leave outroles; the input has no roles field and DataHub keeps the existing roles). Copyresourceswithtype,resources,allResources, everyfiltercriterion and anyprivilegeConstraints. In each criterion, sendvaluesas a plain list of strings. Change only the bad domain value to the domain URN. - If you don't need the policy, select Delete in the Policies tab, or call
deletePolicy(urn). This removes the policy permanently.
-
Check the fix. Reload the Data Sources page as an affected user. The ingestion sources list loads.
If a script or tool creates your policies, change it to write domain URNs, not domain names.
Related Documentation
Tags: ingestion, access-policies, domain-filter, urn, permissions, ingestion-page-error, malformed-policy, policy-configuration, resource-filter, failed-to-load-ingestion-sources