When you're not able to find any asset from a dot-walking field in a Catalog Task that's supposed to reference an item from the alm_hardware table dot-walked from a Requested Item (RITM), there are several potential issues to consider and steps you can follow to troubleshoot or fix the issue:
1. Check Reference Qualifier of the Asset Field
- Ensure Correct Table Reference: First, confirm the field on your Catalog Task form that's intended to reference an asset from
alm_hardware is correctly set up to point to this table.
- Review Reference Qualifier: A reference qualifier is used to filter the records that are available for selection in a reference field. Review the reference qualifier for your asset selection field to ensure it isn't overly restrictive or incorrectly filtering out all records.
2. Dot-walking Setup
Since your requirement involves dot-walking from the RITM to select an asset, ensure this is correctly set up. If it's a custom field, verify the configuration and ensure that the data being passed through dot-walking is valid and exists in the alm_hardware table.
3. Script Includes or Business Rules Affecting the Behavior
- Look for any Business Rules, Script Includes, or Client Scripts that may be running on either the Catalog Task or RITM forms which might affect the pulling or visibility of related assets. It's possible a script might inadvertently be restricting the data.
4. Data Population and Permissions
- Data Check: Confirm that there are indeed available and appropriate assets in the
alm_hardware table to be selected. This might sound basic, but it's an essential step to rule out data issues.
- Permissions: Ensure that the user(s) attempting to select assets has the necessary permissions to view and select records from the
alm_hardware table. Lack of access due to role restrictions could be why no assets are found.
5. Reference Qualifier Advanced Script
If you are using an Advanced Reference Qualifier (scripted reference qualifier), you might need to debug that script to ensure it correctly allows for the selection of assets based on your conditions. Here's a basic outline for setting one that filters available assets:
(function() {
// Example: Allow only assets that are not already assigned.
return 'assigned_toISEMPTY';
})();
Adjust the qualifier according to your needs. For a more specific case tied to the RITM, you might need to dynamically adjust based on the RITM's details or related records.
6. Testing in a Sub-Production Instance
If you're implementing or changing scripts and configurations, do so in a development or test instance first. This helps in preventing any unintended consequences in your production environment.
If after these checks you're still facing issues, it might be beneficial to directly examine the logs (via System Log > Transactions for potential errors when trying to fetch the assets) or consult with a ServiceNow administrator/developer who has access to more detailed system configurations and can directly debug the issue.