Facing issue in the ATF set variable values(SP)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 02:43 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 03:26 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 04:22 AM
I have verified the sys_id that is belongs to the customer_account table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 02:49 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2024 03:51 AM
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]
****************************************************************************************************************