Area: UI Issues
Sub-Area: Dataset Management Interface
Applies to: OSS + Cloud
Issue
You open the Set Application dialog on a dataset or other asset, and the "Select an application" dropdown doesn't list the application you need. Typing its name in the dropdown doesn't find it either. This happens when your instance has more than 1000 applications and runs a DataHub release older than the fix.
You Might Be Asking
- Why can't I see all my applications in the Set Application dropdown?
- How do I assign an application to an asset when it doesn't appear in the list?
- Which DataHub version fixes this?
Cause
In older releases, the Set Application dialog loads the first 1000 applications once, when it opens. When you type in the dropdown, it filters only those 1000 names in your browser. It doesn't send your text to the server. Any application outside the first 1000 can't be selected in the dialog.
Self-hosted DataHub v1.8.0 and earlier have this behavior.
Solution
Upgrade to a release with server-side search
The fix is in DataHub Cloud v1.0.0 and later, and in self-hosted DataHub v1.9.0 and later. In these releases the dialog searches applications on the server:
- When the dialog opens, the dropdown shows the first 100 applications.
- Type at least 3 characters of the application name. The dropdown sends a keyword search to the server and shows up to 100 matching applications.
- If you type fewer than 3 characters, the dropdown keeps showing the first 100 applications.
If an application doesn't appear, type more of its name to narrow the results.
Self-hosted users can follow the Upgrading DataHub guide. If your DataHub Cloud instance runs a release older than v1.0.0, contact DataHub Support to schedule an upgrade.
Workaround: assign the application with GraphQL
On any release, you can assign an application that the dropdown doesn't show with the batchSetApplication mutation. The Applications API tutorial covers it.
mutation batchSetApplication {
batchSetApplication(
input: {
applicationUrn: "urn:li:application:<application-id>"
resourceUrns: [
"urn:li:dataset:(urn:li:dataPlatform:<platform>,<dataset-name>,PROD)"
]
}
)
}
The mutation returns true on success. It adds the application to each asset in resourceUrns and keeps any applications the asset already has. You can list several assets in resourceUrns to assign them in one call.
Always fill in applicationUrn. If you send it as null, the mutation removes applications from the listed assets instead of adding one.
The Python example in the Add Application section of the tutorial works differently. It writes the whole applications aspect of the asset. That write replaces the asset's application list, so it removes any applications the asset already has. Use the batchSetApplication mutation when you want to keep them. If you use the Python example, put every application the asset needs in the applications list.
To find an application's URN, open the application's page in DataHub and copy the URN, or use the queries in the Read Applications section of the Applications API tutorial.