Unable to Order a catalog item in portal using ATF

Supritha3
Tera Contributor

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

find_real_file.png

Can someone please help me find a solution to this.

Regards,

Supritha F

20 REPLIES 20

Ankur Bawiskar
Tera Patron
Tera Patron

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

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

Supritha3
Tera Contributor

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

find_real_file.png

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

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

Swapnil Soni1
Giga Guru

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 

  1. Create an ATF test with two steps
    1. Open a Catalog Item (SP) with Apple ipad 3 catalog item
    2. Order a Catalog Item (SP) - assert that it should succeed
  2. Run the ATF test, it should pass
  3. Change the value of the sys property glide.sc.sp.twostep to false
  4. 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