How to revert the fix script

shaik_irfan
Tera Guru

Hi,

 

we have ran the Fix script and updated the records. Can we revert back the data which got updated ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

no you cannot unless you have taken a xml backup of the records before they got updated

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

no you cannot unless you have taken a xml backup of the records before they got updated

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

Vineet Yadav
Tera Expert

Hi Shaik,

For future update by Fix script use checkbox "rollback".

You need to add on the form as by default not available.

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

 

Regards,

Vineet

 

pawan k singh
Tera Guru

Yes, you can if you have checked the "Record for rollback" option for the fix script you ran.

To Rollback the records, 

1. Go to --> Rollback & Recovery --> Rollback Contexts. 

2. In the "Form Version" column on List view search for "Fix Script:YOUR FIX Script Name" and open it.

3. Click on "Rollback" related list from the record.

4. Type "yes" and press "Ok" if prompted.

 

pawanksingh_0-1672419985323.png

Please mark this helpful, if this answer helped you.

Regards

Pawan K Singh

Vasanthi_L
Tera Contributor

Hi,

To revert the fix script, you first need to check the record for rollback for the respective script so that when you run the script, it will be updated in rollback contexts, and it is possible to revert back; if not, it is not possible, I think.

 

Below I provided you the process for reference.

 

Here i am converting  in progress state incidents to on hold using fix script and reverting 

 

Vassu8_0-1741681896435.png

 

Vassu8_10-1741682726149.png

 

 

 

 

Vassu8_0-1741757676884.png

 

 

Vassu8_6-1741682492458.png

All > Rollback & Recovery > Rollback Contexts

 

Vassu8_7-1741682520935.png

 

Vassu8_8-1741682552353.png

 

Vassu8_9-1741682583480.png

 

 

Regards,

Vasanthi Lankada

 

 

 

 

 

 

 

 

 

 

 

 

 

Vasanthi Lankada