Manually mapping discovery data: Data source column shows error "The data locator is required"
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
When creating an Insight discovery import configuration, choosing the option "Automatically create object types and attributes" maps your data automatically and creates object types, objects, and attributes from your data. However sometimes you might want to manually map your discovery data to your schema before importing data. However when using this method, the Data Locator column shows error The data locator is required and the drop down menu of the same column doesn't list any values for selection. Also you will not be able to choose any data locator, the drop down is empty
Environment
Jira Service Management and Insight Cloud for JSM
Cause
This happens because the Selector field in the object type mapping configuration is empty. Having a selector will help to filter the data from source and limit the scope of the data to the data locators under it.
Solution
We need to choose the appropriate selector to be able to select the data locators under it.
- Open the import configuration page and expand the import configuration you are working on by clicking on "Edit mapping"
- Expand the Object Type that shows the error by clicking on "Edit attribute mapping"
- Click on the 3 dots for the object mapping available just before the "Edit attribute mapping" option and choose > "Edit object type mapping"
- In the Edit object type mapping window, choose an appropriate selector and click save. In this case I am choosing HOST
- You should now be able to choose the data locators available under the Selector specified in the object type mapping config for the object type.
If this still doesn't work, make sure you refresh the import page and attempt the action to choose the data locator again. - Find the tab Create Object type mapping for
The Selector is not a drop down list, here is the list of available values for discovery imports that is accepted in Selector field:
"HOST" "CONNECTED_DEVICE" "DEVICE" "COLLECTOR" "DISCOVERY" "SCAN_SETTING" "FILESYSTEM" "STORAGE_DEVICE" "OS" "CPU" "APPLICATION" "APPLICATION_SERVICE" "PATCH" "LICENSE" "NETWORK_INTERFACE" "SCANNING_INFORMATION" "DATABASE" "VIRTUAL_GUEST" "USER" "GROUP"
Refer to Importing Insight Discovery files for details about importing Insight Discovery data