- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 09:32 AM
My scheduled overnight tests in Dev hung for no obvious reason and I ended up killing the job after 12 hours runtime. There are no active/pending tests or transactions (besides my current one) but I'm seeing this error in the logs and manually executed tests aren't rolling back.
"ATFRollback: Rollback denied for reason: A rollback context exists in an active state (e2617861db8f57006dfb9532ca961920), you cannot rollback while another context is in progress or reverting"
Does anyone know how I can fix this? I'm assuming that a system clone would clear the slate but I'd rather not do one at present if I can avoid it.
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2019 03:13 AM
Late, but maybe it will help someone else struggling with this issue.
The ATF was not rolling back the changes and the data created in the test were not removed.
I checked the log, filtered it by ATF and there was this error:
"ATFRollback: Rollback denied for reason: A rollback context exists in an active state (e2617861db8f57006dfb9532ca961920), you cannot rollback while another context is in progress or reverting"
There is an active record in sys_rollback_context table. You need to change to state from active to not active (Rolled back)
Run a script in the background script to change the state of the active record in sys_rollback_context table to Rolled back.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 09:39 AM
Hi,
Below post should help you to solve your ATF rollback issue
https://community.servicenow.com/community?id=community_question&sys_id=1afe4ba1dbdcdbc01dcaf3231f961971
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 03:09 AM
Unfortunately, no but thanks for the suggestion. That post is someone wanting to disable the rollback feature. In my case the rollback process has hung and I can't restart it. I'll raise a HI ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2019 03:13 AM
Late, but maybe it will help someone else struggling with this issue.
The ATF was not rolling back the changes and the data created in the test were not removed.
I checked the log, filtered it by ATF and there was this error:
"ATFRollback: Rollback denied for reason: A rollback context exists in an active state (e2617861db8f57006dfb9532ca961920), you cannot rollback while another context is in progress or reverting"
There is an active record in sys_rollback_context table. You need to change to state from active to not active (Rolled back)
Run a script in the background script to change the state of the active record in sys_rollback_context table to Rolled back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2019 04:16 AM
Thanks Pavla,
I haven't had this occur again recently but that sounds exactly like the solution to the problem.
Cheers,
Pauline