Force post clone cleanup scripts on TARGET instanceSummary #i925y{list-style-position:inside;} #itg8a{list-style-position:inside;} If for any reason, the post clone cleanup scripts did not execute on the target instance post clone, please use the below script to force it. Please make sure you follow the instructions clearly to make sure the right clone cleanup scripts are run according to the clone request. Facts #i925y{list-style-position:inside;} #itg8a{list-style-position:inside;} Release #i925y{list-style-position:inside;} #itg8a{list-style-position:inside;} Instructions Go to Scripts > Background on the SOURCE instance.Confirm the clone profile used for the clone.Copy+Paste the following script and make sure you have the following configurations on the Background scripts form before executing it. Scope ==> GlobalRecord for rollback? ==> UncheckedExecute in sandbox? ==> UncheckedCancel after 4 hours? ==> UncheckedIf clone used a profile, add the sys_id of the profile in the variable profileSysId // This is very important as this could have specific clone cleanup scripts for the profile. var profileSysId = ""; // blank = no profile var output = ""; var scriptIds = {}; // ------------------------------------------------- // No profile specified // Export all active cleanup scripts // ------------------------------------------------- if (!profileSysId) { var cleanup = new GlideRecord("clone_cleanup_script"); cleanup.addActiveQuery(); cleanup.orderBy("order"); cleanup.query(); while (cleanup.next()) { output += "\n\n"; output += "// =====================================\n"; output += "// " + cleanup.name + "\n"; output += "// Order: " + cleanup.order + "\n"; output += "// =====================================\n\n"; output += cleanup.script + "\n"; } } else { // ------------------------------------------------- // Get System Profile // ------------------------------------------------- var systemProfileId = ""; var systemProfile = new GlideRecord("clone_profile"); systemProfile.addQuery("name", "System Profile"); systemProfile.query(); if (systemProfile.next()) { systemProfileId = systemProfile.getUniqueValue(); } // ------------------------------------------------- // Collect cleanup scripts from System Profile // ------------------------------------------------- if (systemProfileId) { var systemM2M = new GlideRecord("clone_profile_cleanup_scripts"); systemM2M.addQuery("clone_profile", systemProfileId); systemM2M.query(); while (systemM2M.next()) { scriptIds[systemM2M.cleanup_script.toString()] = true; } } // ------------------------------------------------- // Collect cleanup scripts from selected profile // ------------------------------------------------- var profileM2M = new GlideRecord("clone_profile_cleanup_scripts"); profileM2M.addQuery("clone_profile", profileSysId); profileM2M.query(); while (profileM2M.next()) { scriptIds[profileM2M.cleanup_script.toString()] = true; } // ------------------------------------------------- // Retrieve scripts and build output // ------------------------------------------------- var cleanup = new GlideRecord("clone_cleanup_script"); cleanup.addActiveQuery(); cleanup.addQuery("sys_id", "IN", Object.keys(scriptIds).join(",")); cleanup.orderBy("order"); cleanup.query(); while (cleanup.next()) { output += "\n\n"; output += "// =====================================\n"; output += "// " + cleanup.name + "\n"; output += "// Order: " + cleanup.order + "\n"; output += "// =====================================\n\n"; output += cleanup.script + "\n"; } } gs.print(output); Take the output of this script which should encapsulate all the scripts into one large scriptLogon to TARGET instanceGo To scheduled jobs and click NewProvide name and set to run in a minutes timePaste the result from source into the script (Do not include the *** Script: from the first line) Related Links #i925y{list-style-position:inside;} #itg8a{list-style-position:inside;}