Unable to Order a catalog item in portal using ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 01:01 AM
Hi,
When i try to order a catalog item using "Order a catalog item(sp)" it is failing with the summary as "FAILURE: Validations failed. Failed to Order Item." These are the steps that i followed, and also once I open the catalog item in the portal page, I am unable to find some fields even though i have defined those variables
Can someone please help me find a solution to this.
Regards,
Supritha F
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 01:12 AM
Hi,
Can you show the Open a Catalog Item (SP) step screenshot?
I think few variables are dependent on other variable so you need to set those one by one using set variable values (SP) step
check below links:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0758294
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 01:52 AM
Hi Ankur,
There are no such mandatory fields(or variables) included in the catalog item. There is only one non-mandatory field, even which is not getting displayed once i open the catalog item, this is another problem that I am facing. But if i try to order this item at the back-end without using the portal it is working fine.
Below is the details of the steps.
Also please let me know where exactly to find the system property glide.sc.sp.twostep since am not able to find it.
Regards,
Supritha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 02:02 AM
Hi Supritha,
why you require 2nd step Open Service Portal Page; you can directly open the Catalog Item using step 3
Does that catalog item has any user criteria where it is restricted for set of users; Did you check screenshot whether it actually opened the catalog item before setting the variable values
Also give some timeout of 15-20 seconds for the Open Catalog Item step
At which step the error comes?
you can find the property here; sys_properties.LIST -> search with name as glide.sc.sp.twostep
https://instanceName.service-now.com/sys_properties_list.do?sysparm_query=nameLIKEglide.sc.sp.twostep&sysparm_view=
If you don't want to change property value give some timeout to the Order Catalog Item step somewhere around 5/10 seconds
For me it worked even when property is true/false in Orlando Version
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2020 03:37 AM
Hey,
Description
ATF - Order a Catalog Item (SP) fails with "FAILURE: Validations failed. Failed to Order Item" when glide.sc.sp.twostep is set to false
Steps to Reproduce
In an affected
- Create an ATF test with two steps
- Open a Catalog Item (SP) with Apple ipad 3 catalog item
- Order a Catalog Item (SP) - assert that it should succeed
- Run the ATF test, it should pass
- Change the value of the sys property glide.sc.sp.twostep to false
- Run the ATF test. In step 2, it should fail with the message "FAILURE: Validations failed. Failed to Order Item."
Workaround
Set the property glide.sc.sp.twostep to true to fix the issue
Alternatively, Adding a Time out of 5 sec to the Ordering Steps also resolves the issue.
Please mark correct or helpful if this helps.
Thanks
Swapnil