Failure in setting MRVS variable values in ATF

Mi Mi
Tera Contributor

Hi

 

I'm preparing an ATF test for one of our catalogue items which has the mandatory MRVS. In the test, I added these three steps: -

  • Add row to multi-row variable set (SP)
  • Set Variable Values (SP)
  • Save current row of multi-row variable set (SP)

 

But it is failed to set one of the variable values. The failure message is 'FAILURE: Unable to set field 'Country' to value 'Thailand'. Value 'Thailand' is not currently a valid choice.' That particular variable 'Country' is a look-up select box referenced to the Country table. The other two variables in that MRVS are the date fields.

 

Could any of you assist me in resolving this?

 

Thank you in advance.

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Mi Mi 

Possibly the user you are using in ATF test doesn't have read access to the Country table

Try these 2 things

1) try running the ATF as an admin and see if it works with Lookup select box variable

2) try changing the variable to Reference and see if it works in ATF

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thank you for your reply.

I used 'Create a User' test step with the role that can read the table. The catalogue item is not the new one. It has been used by the end users for a while. That means we haven't heard any reports about an access to the table. That's why I don't think there is a need to test with an admin role, and I believe it is also not a good practice. I aslo tested impersonating the standard end user and had the same failure.

As we are in the change freeze period, I cannot try your second suggestion. When I can test it, I will give you an update.