Unable to rollback the changes made using background script

rohitservicenow
Mega Guru

I tried changing the Class of a hardware catalog item to Vendor catalog item thinking vendor catalog item is child class of sc_cat_item using the following background script.

 

var gr = new GlideRecord('sc_cat_item');

if(gr.get(<sys_id>)){

gr.setValue('sys_class_name', 'pc_vendor_cat_item');

gr.update();

}

 

After running the script, i realised that 'vendor catalog item' is not child class of sc_cat_item and tried rolling back the changes, however received the error that rollback failed as the recovery record state is 'rolled back'

 

Tried bringing the XML file from higher instance and received error, file is not a valid XML.

Tried recovering from deleted records with no luck. 

 

Wondering how can i recover this item in Test instance?

1 REPLY 1

Community Alums
Not applicable