Clicking Expand button ATF Test Step Data Pill Picker crashes Picker list

David Dietrich1
Tera Expert

I want to use a reference-type ATF Variable to fill an input variable in an ATF Test step. The problem is: whenever I click the Expand button to use a field value from the reference record to populate the input variable, the picker list crashes and the browser console logs an error that reads: "TypeError: Cannot read properties of undefined (reading 'name')"

Has anybody else seen this?

1 ACCEPTED SOLUTION

David Dietrich1
Tera Expert

I worked around the problem by adding an ATF variable with a calculated value that reads the necessary field from the primary variable, then I referenced the calculated ATF variable from the ATF test step and everything worked fine.

View solution in original post

3 REPLIES 3

Amit Gujarathi
Giga Sage
Giga Sage

HI @David Dietrich1 ,
I trust you are doing great.

This issue seems to be related to accessing the 'name' property of the reference record, which might be undefined or not accessible at that moment. To troubleshoot this problem, you can follow these steps:

  1. Verify the Configuration: Ensure that the reference field in the ATF Variable is correctly configured to reference the appropriate table and field.

  2. Review Field Permissions: Check if the user executing the ATF Test has sufficient permissions to access the reference record and its associated fields.

  3. Debug the Issue: To gain more insights into the error, you can examine the browser console logs for additional details. Look for any specific error codes or stack traces that might provide clues about the root cause of the problem.

  4. Test in Different Browsers: Try reproducing the issue in multiple browsers to determine if it's browser-specific. This step can help identify whether the problem is related to the browser compatibility or specific configurations.

  5. ServiceNow Community: Search the ServiceNow community or forums to see if other users have encountered a similar issue and if any solutions or workarounds are available.


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



Your answer was not helpful.

  1. The table which the ATF variable references is not deleted and it's not possible to configure an ATF variable to reference a specific field.
  2. The ATF is not executing at the time I am configuring the ATF step, so the user executing the ATF is irrelevant.
  3. This tells me you didn't read my original post because if you had, you would see that I already checked the browser console.
  4. I have tried multiple browsers. The problem recurs regardless.
  5. I searched the Community before posting here.

David Dietrich1
Tera Expert

I worked around the problem by adding an ATF variable with a calculated value that reads the necessary field from the primary variable, then I referenced the calculated ATF variable from the ATF test step and everything worked fine.