How comprehensive and durable is the "Enable rollback" feature for fix scripts?

jimjqliao
Tera Contributor

Regarding the 'Enable rollback' checkbox for fix scripts: does it truly capture everything the script changes, or are there exceptions? Also, how long does the rollback backup data persist before it's cleaned up?

2 REPLIES 2

kaushal_snow
Giga Sage

@jimjqliao ,

 

Enable rollback checkbox on a fix script only records the changes the script itself makes so you can revert those specific inserts/updates/deletes later.....it doesn’t capture every side effect or unrelated change..... and won’t work if the script errors or isn’t finished, and the rollback context records are temporary and cleaned up after a limited retention period (typically around seven days by default) so you need to perform the rollback within that window before the system pushes the rollback data.....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Technical Consultant/Developer

Afrith Shariff
Tera Guru

Hi @jimjqliao ,

 

Please find the official KB from ServiceNow - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0761248

 

The DB changes that are made will be captured in sys_rollback_context table and used to rollback to the previous state if opted.

 

Thanks,

Afrith