ATF Failure: Failed to open the 'sc_req_item' form with id 'eee283d32b5576105f33ff824391bfd

pranjalsrvs
Tera Contributor

Hello everyone,

During creating an ATF test cases I have faced a issue in a test which 
FAILURE: Failed to open the 'sc_req_item' form with id 'eee283d32b5576105f33ff824391bfde'
Table 'sc_req_item' does not have a record with id 'eee283d32b5576105f33ff824391bfde'

Can anyone help me to resolve this issue

pranjalsrvs_1-1763989141388.png

These are the steps in the test

 

6 REPLIES 6

lauri457
Giga Sage

Does the item exist? If yes, does the user from the Impersonate step have access to it?

Chidanand_VK
Mega Guru

@pranjalsrvs , Can you tell me at which step it is failing?

Ankur Bawiskar
Tera Patron
Tera Patron

@pranjalsrvs 

did you try testing with Admin and if it's working then check these points

-> the non-admin you are using has READ Access to that record

-> any query business rule is blocking the RITM

Try to add "Record Query" step before opening the Actual RITM record

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron
Tera Patron

@pranjalsrvs 

I think the "Order a Catalog Item (SP)" gives REQ sysId and not RITM sysId

Try to use Record Query on RITM with Filter Condition as Request = Output from previous step

The use Open an Existing Record for RITM

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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