Unable to add clone target after instance renameDescriptionA clone target could be unavailable to clone over after an instance(clone target) has been renamed. While trying to add the instance with its new name you could encounter an error like; "Error MessageTarget instance already exists (cannot create new record)"Release or EnvironmentAll releases.CauseOnce the instance is renamed the instance URL is updated with the new name, but the clone target record reflects old instance name for that instance. If you open the Clone Target record, the Instance URL field is read-only. ResolutionIn order to rename the clone target records after an instance rename, there is an easy workaround any administrator on the instance should be able to perform. Approach 1 You can execute the below script after supplying the 3 instance variables on the /sys.scripts.do page as user with the (security_)admin role. renameCloneTarget();function renameCloneTarget() { var old_instance_name = 'insertOldInstanceNameHere'; var instance_id = 'insertInstanceIDhere'; var new_instance_name = 'insertNewInstanceNameHere'; var target = new GlideRecord('instance'); target.addEncodedQuery('source=false^instance_id='+instance_id+'^instance_urlLIKE'+old_instance_name); target.setLimit(1); target.query(); while (target.next()) { gs.info('Renamed clone target instance "'+old_instance_name+'" with ID instance_id '+instance_id+' to > "'+new_instance_name+'"'); target.instance_name = new_instance_name; target.instance_url = 'https://'+new_instance_name+'.service-now.com'; target.update(); }} Approach 2 Navigate to Clone Targets list.Find the clone target which was renamed, DO NOT OPEN the record.Double click on the Instance URL value for that record, it should allow you to edit the text for Instance URL.Change the Instance URL to reflect the new instance nameClick the green checkmark to save the record.Schedule a new clone. Approach 3 Remove all entries for the clones to the old instance name from the clone history list. You may need to configure the delete button to show for admins.Remove the clone target record. You may need to configure the delete button to show for admins.Add the clone target with the new name. Approach 4 not recommended but if all else fails Navigate to Clone Targets.Export the clone target that needs renaming to XML; Change the following fields to reflect the new instance name using a text editor: <instance_name><instance_url>As long as the target instance URL is OK the rest of the fields, like db properties, get updated via the soap service from the clone automation. Import the updated XML(If the right-click option to "Import XML" does not show then navigate to Retrieved Update Sets > Import Update Set from XML (this way no business rules run when updating the record, this also means you can no track the update))Schedule a new clone.