cleanup scripts

ryadavalli
Tera Expert

Cleanup script didn't run but when ran as background script, it did what it is expected to do. Any ideas why?

6 REPLIES 6

The SN Nerd
Giga Sage
Giga Sage

Was your cleanup script in the source instance (Production if you are cloning down)?



The cleanup Script table is not preserved.


If the script does not exist in the source instance, it will be deleted as part of the clone and alas cannot run.



If this is not the case, please post your script.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

I did check the cleanup script got into sub prod environments


Uncle Rob
Kilo Patron

How did you attempt to run the clean up script, and what (precisely) happened?


Anything show up in the system logs?


THe clean up script is trying to give grants to certain groups in sub prod environments. When I run as a backgorund script, it worked, but didnt show effect after the clone was done.


I ran it based on checking is the instance was dev or test etc.