Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Facing issue in the ATF set variable values(SP)

SindhujaS
Tera Contributor

In ATF Test step, set variable value(SP)

while i am setting the organization field value in the CSM portal

organization(refers to the customer_account table )

I am setting the valid account value but it is failing and showing the failure

failure: failed to set field 'organization' to value 'fe4115ab1bada11002c76283b24bcb6b' because the reference is not valid. 

 

13 REPLIES 13

@Ankur Bawiskar Could you please verify if the sys_id indeed belongs to the customer_account table. Also, as stated by Ankur this issue could also occur due to ACL (if testing with non admin user) or a query business rule which might be preventing selection of this value in the field.

I have verified the sys_id that is belongs to the customer_account table

Ankur Bawiskar
Tera Patron
Tera Patron

@SindhujaS 

Any ref qualifier is there which blocks that value?

the user you are using to Set the variable has the read access to customer_account table?

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SindhujaS 

 

The user who used this test case must have the required CSM role/agent role. Try the same user manually and see if are you able to do it?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************