ATF error - "Unable to find the rollback context id for recording the server step execution" when trying to create a user

Alexandre Magea
Kilo Expert

I am currently working on automated test (ATF) for a record producer.

In order to follow the recommended practices, I try to create a new user instead of impersonating an existing one in my ATF. When executing the test, I get the following error message: Unable to find the rollback context id for recording the server step execution

 

find_real_file.png

 

Does anyone an idea of what might causing it?

Thanks in advance!

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

check below links

https://community.servicenow.com/community?id=community_question&sys_id=7a8aa7a01b3a3700ada243f6fe4b...

https://hi.service-now.com/kb_view.do?sysparm_article=KB0727656

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

Daxin1
Tera Contributor

Hi Alexandre, 

 

I started to face the exact same issue after upgrading to Tokyo. 

Tried the solution mentioned in https://hi.service-now.com/kb_view.do?sysparm_article=KB0727656 but that was not helpful .

Could you please share how this was resolved. Thank you.

Edxavier Robert
Mega Sage

Hi, I am having the same issue. Did anyone know how to resolve this? When running ATF I am getting this error: 

Unable to find the rollback context id for recording the server step execution

Hello,

 

In my case the issue was due to clone and the sys_number_counter was preserved for some reason.

If there are existing records in the table "sys_rollback_context" and the counter is at a number that is trying to insert records where they already exist it was logging this error. 

Setting the sys_number_counter for sys_rollback_context to the highest number in the table resolved the issue.